occi-cli 4.3.5 → 4.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39502c62d6a033b34cabcf442032b7635fb98df7
4
- data.tar.gz: 0a3f0bfa74eca163676ebadf446392ee0bc82b2d
3
+ metadata.gz: 704307e77dd345d42f8837441729edf27ffba3f0
4
+ data.tar.gz: 6e0cebf3b733ce935ece084b2de383c1a2d24a37
5
5
  SHA512:
6
- metadata.gz: 6f997d695d5621b74f7522d96b5b95e212bc4b9a2c30ee499fc564654655fbe107dc69730f256cfaa70616e606e429c2521242f72c9dcbd66eb9b7ecac8fb332
7
- data.tar.gz: 476c7fc25ca9d74fc902d88ddaf813f6b50d87582dbda51afcb79ff70527a5a49b7162fdfdc85618acca516894ae02e996c50c354a049cec6ee2d200cd9714ba
6
+ metadata.gz: ebf39eab8ecb975f7ea284160cda0d0342beef2d5937d8fe7d244f3ba206d83d69659d10fa0c103ea7b02592af547f7933bd44a19bf8f7944db9ae9969e3d89a
7
+ data.tar.gz: 3eaa929e72c342e41c77f276e13ef121155bd0eab79ae8f9042ffc4c39e09a55b4601425c1c6a1a28db63e613146e0f2c4f157b98f392270555710716a0b5742
data/doc/occi.1 CHANGED
@@ -102,6 +102,10 @@ Username for basic or digest authentication.
102
102
  \fB-v\fR, \fP--version\fR
103
103
  Show version.
104
104
 
105
+ .TP
106
+ \fB-w\fR, \fP--wait-for-active\fR \fITIMEOUT\fR [0]
107
+ Wait for \fITIMEOUT\fR seconds for the created resource to become 'active' before returning. Defaults to \fB0\fR seconds (will be interpreted as 'disabled').
108
+
105
109
  .TP
106
110
  \fB-x\fR, \fP--user-cred\fR \fIFILE\fR [~/.globus/usercred.pem]
107
111
  Path to user's x509 credentials.
@@ -1,6 +1,7 @@
1
1
  module Occi::Cli::Helpers::CreateHelper
2
2
 
3
3
  MIN_TIMEOUT = 5
4
+ WAIT_FOR_STATES = %w(active online).freeze
4
5
 
5
6
  def helper_create(options, output = nil)
6
7
  location = nil
@@ -57,7 +58,7 @@ module Occi::Cli::Helpers::CreateHelper
57
58
  Occi::Cli::Log.debug "Starting #{timeout}s wait period for #{resource_link.inspect} to become active"
58
59
  while true
59
60
  desrc = describe(resource_link).first
60
- break if !desrc.respond_to?(:state) || desrc.state == 'active'
61
+ break if !desrc.respond_to?(:state) || WAIT_FOR_STATES.include?(desrc.state)
61
62
  sleep MIN_TIMEOUT
62
63
  end
63
64
  }
@@ -1,5 +1,5 @@
1
1
  module Occi
2
2
  module Cli
3
- VERSION = "4.3.5" unless defined?(::Occi::Cli::VERSION)
3
+ VERSION = "4.3.6" unless defined?(::Occi::Cli::VERSION)
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.5
4
+ version: 4.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Feldhaus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-11-22 00:00:00.000000000 Z
13
+ date: 2016-12-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: occi-api
@@ -247,8 +247,4 @@ rubygems_version: 2.4.8
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: Executable OCCI client
250
- test_files:
251
- - spec/occi/cli/helpers_spec.rb
252
- - spec/occi/cli/occi_opts_spec.rb
253
- - spec/occi/cli/resource_output_factory_spec.rb
254
- - spec/spec_helper.rb
250
+ test_files: []