use of com.hartwig.batch.api.RemoteLocationsApi in project pipeline5 by hartwigmedical.
the class PurpleRerun method execute.
@Override
public VirtualMachineJobDefinition execute(final InputBundle inputs, final RuntimeBucket runtimeBucket, final BashStartupScript commands, final RuntimeFiles executionFlags) {
final InputFileDescriptor biopsy = inputs.get("biopsy");
final RemoteLocationsApi storageLocations = new RemoteLocationsApi(biopsy);
commands.addCommands(bashCommands(storageLocations));
commands.addCommand(new OutputUpload(GoogleStorageLocation.of(runtimeBucket.name(), "purple"), executionFlags));
return VirtualMachineJobDefinition.purple(commands, ResultsDirectory.defaultDirectory());
}
Aggregations