arvados-cli 0.1.20151104051940 → 0.1.20151109193309

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/arv-run-pipeline-instance +21 -12
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c15db0b63a7e7c4666f80da28a47729e41b7eec9
4
- data.tar.gz: 3c047409ff1ed08d1e9909f528660072e4b16d40
3
+ metadata.gz: 44df1a75ca8fadb960d3f5091e034157d961d6ea
4
+ data.tar.gz: cf5dbd02a6a52b90cdc47f2221e23c23d3447ae1
5
5
  SHA512:
6
- metadata.gz: e02f1e39f820e1e1a62c5a98886dbf9e316c8ba4d3cc9577fe37f6b5caf14f2e1d8a284c25853f3852e31680645fba9e3eb95873ed278f73cc9d1b2f852c535e
7
- data.tar.gz: fd34686627b9aa9b31b40fcb3db48ea61e7413fc39fa9a593f98d135ab3a6ce567f6b1a79cf1e563b9e9efdd4e5751be01012d2d0a6fca542c884252258352f9
6
+ metadata.gz: 7b80acccb9f679530b4bdf70da0475b0ac2fa59e78a8ba2cedd3126504ed44188893fa1191757ed7c46178ffc11bf04838030fbeba017b3d41dd4f7de5990623
7
+ data.tar.gz: 1cebbff9e0b542456271583829efaae3488e70b2288236206603c4901a23aef4d7e90e3999f0c55d20bd0c72a4c1c9da254e46e05e8d2266f9bc14e8953cea6c
@@ -149,6 +149,10 @@ p = Trollop::Parser.new do
149
149
  "Description for the pipeline instance.",
150
150
  :short => :none,
151
151
  :type => :string)
152
+ opt(:project_uuid,
153
+ "UUID of the project for the pipeline instance.",
154
+ short: :none,
155
+ type: :string)
152
156
  stop_on [:'--']
153
157
  end
154
158
  $options = Trollop::with_standard_exception_handling p do
@@ -440,18 +444,23 @@ class WhRunPipelineInstance
440
444
  end
441
445
  end
442
446
  else
443
- description = $options[:description]
444
- description = ("Created at #{Time.now.localtime}" + (@template[:name].andand.size.andand>0 ? " using the pipeline template *#{@template[:name]}*" : "")) if !description
445
- @instance = PipelineInstance.
446
- create(components: @components,
447
- properties: {
448
- run_options: {
449
- enable_job_reuse: !@options[:no_reuse]
450
- }
451
- },
452
- pipeline_template_uuid: @template[:uuid],
453
- description: description,
454
- state: ($options[:submit] ? 'RunningOnServer' : 'RunningOnClient'))
447
+ description = $options[:description] ||
448
+ ("Created at #{Time.now.localtime}" + (@template[:name].andand.size.andand>0 ? " using the pipeline template *#{@template[:name]}*" : ""))
449
+ instance_body = {
450
+ components: @components,
451
+ properties: {
452
+ run_options: {
453
+ enable_job_reuse: !@options[:no_reuse]
454
+ }
455
+ },
456
+ pipeline_template_uuid: @template[:uuid],
457
+ description: description,
458
+ state: ($options[:submit] ? 'RunningOnServer' : 'RunningOnClient')
459
+ }
460
+ if @options[:project_uuid]
461
+ instance_body[:owner_uuid] = @options[:project_uuid]
462
+ end
463
+ @instance = PipelineInstance.create(instance_body)
455
464
  end
456
465
  self
457
466
  end
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.20151104051940
4
+ version: 0.1.20151109193309
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-04 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arvados
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - "<"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.0.0
181
- description: Arvados command line tools, git commit 1d1c6de3c842a33a57b7d469fdaaaa1b873433dc
181
+ description: Arvados command line tools, git commit b958fc62a440d30e4f381f88015acfecaa640b71
182
182
  email: gem-dev@curoverse.com
183
183
  executables:
184
184
  - arv