forked from ctron/package-drone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for processing RPM file and creating a YUM repository, ct…
- Loading branch information
Showing
187 changed files
with
15,408 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
de.dentrassi.pm.aspect.common/src/de/dentrassi/pm/aspect/common/spool/AbstractSpooler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2015 IBH SYSTEMS GmbH. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* IBH SYSTEMS GmbH - initial API and implementation | ||
*******************************************************************************/ | ||
package de.dentrassi.pm.aspect.common.spool; | ||
|
||
public class AbstractSpooler | ||
{ | ||
} |
33 changes: 33 additions & 0 deletions
33
...entrassi.pm.aspect.common/src/de/dentrassi/pm/aspect/common/spool/ChannelCacheTarget.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2015 IBH SYSTEMS GmbH. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* IBH SYSTEMS GmbH - initial API and implementation | ||
*******************************************************************************/ | ||
package de.dentrassi.pm.aspect.common.spool; | ||
|
||
import java.io.IOException; | ||
import java.io.OutputStream; | ||
|
||
import de.dentrassi.pm.aspect.aggregate.AggregationContext; | ||
import de.dentrassi.pm.common.utils.IOConsumer; | ||
|
||
public class ChannelCacheTarget implements SpoolOutTarget | ||
{ | ||
private final AggregationContext context; | ||
|
||
public ChannelCacheTarget ( final AggregationContext context ) | ||
{ | ||
this.context = context; | ||
} | ||
|
||
@Override | ||
public void spoolOut ( final String fileName, final String mimeType, final IOConsumer<OutputStream> stream ) throws IOException | ||
{ | ||
this.context.createCacheEntry ( fileName, fileName, mimeType, stream ); | ||
} | ||
} |
Oops, something went wrong.