Class: Etna::Cwl::Step

Inherits:
Etna::Cwl show all
Defined in:
lib/etna/cwl.rb

Constant Summary collapse

FIELD_LOADERS =
{
    id: PrimitiveLoader::STRING.optional,
    label: PrimitiveLoader::STRING.optional,
    doc: PrimitiveLoader::STRING.optional,
    in: StepInput.loader.as_mapped_array('id', 'source'),
    out: StepOutput.loader.or(PrimitiveLoader::STRING.map { |id| StepOutput.loader.load({'id' => id}) }).as_array,
    requirements: NeverLoader::UNSUPPORTED,
    hints: NeverLoader::UNSUPPORTED,
    run: PrimitiveLoader::STRING.map { |id| Operation.loader.load({'id' => id, 'class' => 'Operation', 'inputs' => [], 'outputs' => []}) }.or(Operation.loader),
    when: NeverLoader::UNSUPPORTED,
    scatter: NeverLoader::UNSUPPORTED,
    scatterMethod: NeverLoader::UNSUPPORTED,
}

Instance Method Summary collapse

Methods inherited from Etna::Cwl

#as_json, as_json, #initialize, load_item, loader

Constructor Details

This class inherits a constructor from Etna::Cwl

Instance Method Details

#idObject



668
669
670
# File 'lib/etna/cwl.rb', line 668

def id
  @attributes['id']
end

#inObject



672
673
674
# File 'lib/etna/cwl.rb', line 672

def in
  @attributes['in']
end

#outObject



676
677
678
# File 'lib/etna/cwl.rb', line 676

def out
  @attributes['out']
end