poweriq_client 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +0 -16
- data/lib/poweriq_client/resource/job.rb +2 -1
- data/lib/poweriq_client/version.rb +1 -1
- data/poweriq_client.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -157,22 +157,6 @@ completeness. Methods on the job resource simplify this for you:
|
|
157
157
|
|
158
158
|
>> job = Job.new('/5')
|
159
159
|
https://vm163/api/v2/jobs/5
|
160
|
-
>> job.get
|
161
|
-
{
|
162
|
-
"job" => {
|
163
|
-
"id" => 5,
|
164
|
-
"user_id" => 1,
|
165
|
-
"status" => "ACTIVE",
|
166
|
-
"description" => nil,
|
167
|
-
"start_time" => "2011/10/07 14:54:32 +0000",
|
168
|
-
"end_time" => "2011/10/07 14:54:33 +0000",
|
169
|
-
"has_errors" => false,
|
170
|
-
"percent_complete" => .5,
|
171
|
-
"completed" => false,
|
172
|
-
"last_message" => "Job started",
|
173
|
-
"error_count" => 0
|
174
|
-
}
|
175
|
-
}
|
176
160
|
>> job.poll(:max=>12,:delay=>5)
|
177
161
|
true
|
178
162
|
>> job.response.json
|
@@ -6,9 +6,10 @@ module PowerIQ
|
|
6
6
|
require_member!
|
7
7
|
options.symbolize_keys!
|
8
8
|
poll_count = 0
|
9
|
-
|
9
|
+
while(poll_count < options[:max])
|
10
10
|
poll_count += 1
|
11
11
|
get
|
12
|
+
break if(completed?)
|
12
13
|
Kernel.sleep(options[:delay])
|
13
14
|
end
|
14
15
|
begin
|
data/poweriq_client.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: poweriq_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Trent Albright
|
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
166
|
requirements:
|
167
167
|
- - ">="
|
168
168
|
- !ruby/object:Gem::Version
|
169
|
-
hash: -
|
169
|
+
hash: -1033646526931584811
|
170
170
|
segments:
|
171
171
|
- 0
|
172
172
|
version: "0"
|