occi-cli 4.3.5 → 4.3.6
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.
- checksums.yaml +4 -4
- data/doc/occi.1 +4 -0
- data/lib/occi/cli/helpers/create_helper.rb +2 -1
- data/lib/occi/cli/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 704307e77dd345d42f8837441729edf27ffba3f0
|
|
4
|
+
data.tar.gz: 6e0cebf3b733ce935ece084b2de383c1a2d24a37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
61
|
+
break if !desrc.respond_to?(:state) || WAIT_FOR_STATES.include?(desrc.state)
|
|
61
62
|
sleep MIN_TIMEOUT
|
|
62
63
|
end
|
|
63
64
|
}
|
data/lib/occi/cli/version.rb
CHANGED
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.
|
|
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-
|
|
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: []
|