arvados-cli 0.1.20161011231816 → 0.1.20161017193526

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/arv-run-pipeline-instance +17 -14
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11bf49b99002560203aef7cc8fc4b4e33cabadb2
4
- data.tar.gz: 4bed16915c6b334e51e54560dd627112d2f3f1f8
3
+ metadata.gz: 57833719e09fb7eb4b39afa7a2d129a8788883a6
4
+ data.tar.gz: 7ad15cd9b2b43cb9f4394fe544c824737a992d1d
5
5
  SHA512:
6
- metadata.gz: d845904d4cb266c995c375ba81e2234eee001f51e82f5d98472f86ed9d19dc8f3f8d9743e7573b93f4f0f6602e89d68ea5aaec7b50e756ab74e607f580527dc8
7
- data.tar.gz: 497c1e4bf813cd60dda6a239c18f6353ea79e422b387425aada7715229685e8501affb1e335f8ced1a1ee0d2582c9c08e25c16955bad3a27e52bfbfe3ce2995e
6
+ metadata.gz: 8ffb3a40c55f0ed87ddf25793df6948c44759355b5d939f5962d3fdba46653207d47786fca427a778b7a7d78f3785d2a3117a79eb4b3b83d71af414a63febc2d
7
+ data.tar.gz: 7e581bca19e77f19155dc0da34fd1a7cfe745aae207d497283f593b0837817e72a306b5827938d772dd8ec3f7ed1495769ff1decc1bce64f75c47265438d34ce
@@ -364,22 +364,25 @@ class WhRunPipelineInstance
364
364
  @components.each do |componentname, component|
365
365
  component[:script_parameters].each do |parametername, parameter|
366
366
  parameter = { :value => parameter } unless parameter.is_a? Hash
367
- value =
368
- (params["#{componentname}::#{parametername}"] ||
369
- parameter[:value] ||
370
- (parameter[:output_of].nil? &&
371
- (params[parametername.to_s] ||
372
- parameter[:default])) ||
373
- nil)
374
- if value.nil? and
375
- ![false,'false',0,'0'].index parameter[:required]
376
- if parameter[:output_of]
377
- if not @components[parameter[:output_of].intern]
378
- errors << [componentname, parametername, "output_of refers to nonexistent component '#{parameter[:output_of]}'"]
379
- end
380
- next
367
+ if params.has_key?("#{componentname}::#{parametername}")
368
+ value = params["#{componentname}::#{parametername}"]
369
+ elsif parameter.has_key?(:value)
370
+ value = parameter[:value]
371
+ elsif parameter.has_key?(:output_of)
372
+ if !@components[parameter[:output_of].intern]
373
+ errors << [componentname, parametername, "output_of refers to nonexistent component '#{parameter[:output_of]}'"]
374
+ else
375
+ # value will be filled in later when the upstream
376
+ # component's output becomes known
381
377
  end
378
+ next
379
+ elsif params.has_key?(parametername.to_s)
380
+ value = params[parametername.to_s]
381
+ elsif parameter.has_key?(:default)
382
+ value = parameter[:default]
383
+ else
382
384
  errors << [componentname, parametername, "required parameter is missing"]
385
+ next
383
386
  end
384
387
  debuglog "parameter #{componentname}::#{parametername} == #{value}"
385
388
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20161011231816
4
+ version: 0.1.20161017193526
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arvados
@@ -164,7 +164,7 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.8'
167
- description: Arvados command line tools, git commit c98596a46dc7c166acb2a26b742a09ae0493224a
167
+ description: Arvados command line tools, git commit 921fef9e349cada916934ae0131067adac8d0335
168
168
  email: gem-dev@curoverse.com
169
169
  executables:
170
170
  - arv