arvados-cli 0.1.20140915112745 → 0.1.20140916224142

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 +12 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b89330e61f2899f96a450f0e7f00ed7c0f681425
4
- data.tar.gz: 24155aab34a90dabe600a2ae682cfc2aadeb4eed
3
+ metadata.gz: 0b6745cb6e9a3739e122cf8810278e722c4fc469
4
+ data.tar.gz: aa6d7e7d3445e2d6d9d6dfc2bc6ab5340d8ddc4c
5
5
  SHA512:
6
- metadata.gz: d5cd70411b7cbd1da921468d6926636a735cdfc75d4f3ff0c63e511d8e3ec70cd29b8b2db7308b0b0c4c79edadc352788cc1697f3e639d9b0d215be632a13b9b
7
- data.tar.gz: c09e8eee5cdff7122b0d4785ccb727138c3197024c0f6487c5d2e2a85f6b018d02bb514472a583a6f30d4ca6eab0ec0232357f2a5643b17b004fa46f06a6903f
6
+ metadata.gz: 5bc01916926a94b002274c876f904ac1f12d48c4892205a093c093e6320cd107a73e49d79c781667e9db57378ba255d3e784cf98db11507cd6c035174ffe2cf0
7
+ data.tar.gz: 8f9b00f6d2e0b29cc6a3522a8b4f79b60a6c2d78c4423f758bf47984744c0763bd83ac3adad99ccdcebfa0b7cc8fe90e8df732481651dcf3032c942828b46f58
@@ -42,6 +42,8 @@
42
42
  # [--status-json path] Print JSON status report to a file or
43
43
  # fifo. Default: /dev/null
44
44
  #
45
+ # [--description] Description for the pipeline instance.
46
+ #
45
47
  # == Parameters
46
48
  #
47
49
  # [param_name=param_value]
@@ -175,6 +177,10 @@ p = Trollop::Parser.new do
175
177
  "Manage the pipeline in process.",
176
178
  :short => :none,
177
179
  :type => :boolean)
180
+ opt(:description,
181
+ "Description for the pipeline instance.",
182
+ :short => :none,
183
+ :type => :string)
178
184
  stop_on [:'--']
179
185
  end
180
186
  $options = Trollop::with_standard_exception_handling p do
@@ -478,6 +484,8 @@ class WhRunPipelineInstance
478
484
  end
479
485
  end
480
486
  else
487
+ description = $options[:description]
488
+ description = ("Created at #{Time.now.localtime}" + (@template[:name].andand.size>0 ? " using the pipeline template *#{@template[:name]}*" : "")) if !description
481
489
  @instance = PipelineInstance.
482
490
  create(components: @components,
483
491
  properties: {
@@ -486,6 +494,7 @@ class WhRunPipelineInstance
486
494
  }
487
495
  },
488
496
  pipeline_template_uuid: @template[:uuid],
497
+ description: description,
489
498
  state: ($options[:submit] ? 'RunningOnServer' : 'RunningOnClient'))
490
499
  end
491
500
  self
@@ -569,9 +578,11 @@ class WhRunPipelineInstance
569
578
  debuglog "names: #{@instance[:name]} #{@template[:name]}", 0
570
579
  if (not @instance[:name].nil?) and (not @instance[:name].empty?)
571
580
  pipeline_name = @instance[:name]
572
- else
581
+ elsif @instance[:pipeline_template_uuid]
573
582
  fetch_template(@instance[:pipeline_template_uuid])
574
583
  pipeline_name = @template[:name]
584
+ else
585
+ pipeline_name = "pipeline started #{@instance[:started_at]}"
575
586
  end
576
587
  if c[:output_name] != false
577
588
  # Create a collection located in the same project as the pipeline with the contents of the output.
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.20140915112745
4
+ version: 0.1.20140916224142
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arvados
@@ -166,7 +166,7 @@ dependencies:
166
166
  - - "<"
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.0.0
169
- description: This is the Arvados SDK CLI gem, git revision bf243e064a7a2ee4e69a87dc3ba46e949a545150
169
+ description: This is the Arvados SDK CLI gem, git revision 4cfb296612f7b483b56c36f119ca175def706d2f
170
170
  email: gem-dev@curoverse.com
171
171
  executables:
172
172
  - arv