iron_worker_ng 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iron_worker_ng/api_client.rb +2 -6
- data/lib/iron_worker_ng/client.rb +14 -5
- data/lib/iron_worker_ng/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80f74868cfa7dcac4f3f5f5f76f41e48551ba91a
|
4
|
+
data.tar.gz: 2780aedc430383b20e660659ae809424db571bd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ae24d12f1dc9426268f3118b5d5ce79ca77b0d729d2aa877b360f731043e7e21f90835ca73701c1de3ddc22b1dc6b4a63bd53cf22b59c5b81b4fb70400cb9a
|
7
|
+
data.tar.gz: 1b8b3d93d03371f9a869c9f7ae2d5027b4e142735000426b6c5316a89efba4b4a24b6ec5ccdf3af796e304c022b7dafaf6ac6c02bc1eba8f739947edd061c8d5
|
@@ -156,8 +156,8 @@ module IronWorkerNG
|
|
156
156
|
parse_response(get("projects/#{@project_id}"))
|
157
157
|
end
|
158
158
|
|
159
|
-
def clusters_list
|
160
|
-
parse_response(get("clusters"))
|
159
|
+
def clusters_list(options = {})
|
160
|
+
parse_response(get("clusters", options))
|
161
161
|
end
|
162
162
|
|
163
163
|
def clusters_get(cluster_id)
|
@@ -184,10 +184,6 @@ module IronWorkerNG
|
|
184
184
|
parse_response(post("clusters/#{cluster_id}/share", options))
|
185
185
|
end
|
186
186
|
|
187
|
-
def clusters_shared_list
|
188
|
-
parse_response(get("clusters", {shared: true}))
|
189
|
-
end
|
190
|
-
|
191
187
|
def clusters_unshare(cluster_id, user_id)
|
192
188
|
parse_response(post("clusters/#{cluster_id}/unshare/#{user_id}"))
|
193
189
|
end
|
@@ -446,10 +446,9 @@ EXEC_FILE
|
|
446
446
|
OpenStruct.new(res)
|
447
447
|
end
|
448
448
|
|
449
|
-
def clusters_list
|
449
|
+
def clusters_list(options = {})
|
450
450
|
IronCore::Logger.debug 'IronWorkerNG', "Calling clusters.list"
|
451
|
-
|
452
|
-
res['clusters'].map { |s| OpenStruct.new(s.merge('_id' => s['id'])) }
|
451
|
+
clusters_list_base(options)
|
453
452
|
end
|
454
453
|
|
455
454
|
def clusters_get(id)
|
@@ -491,8 +490,12 @@ EXEC_FILE
|
|
491
490
|
|
492
491
|
def clusters_shared_list
|
493
492
|
IronCore::Logger.debug 'IronWorkerNG', "Calling clusters.shared.list"
|
494
|
-
|
495
|
-
|
493
|
+
clusters_list_base(shared: true)
|
494
|
+
end
|
495
|
+
|
496
|
+
def clusters_internal_list
|
497
|
+
IronCore::Logger.debug 'IronWorkerNG', "Calling clusters.internal.list"
|
498
|
+
clusters_list_base(internal: true)
|
496
499
|
end
|
497
500
|
|
498
501
|
def clusters_unshare(cluster_id, user_id)
|
@@ -516,5 +519,11 @@ EXEC_FILE
|
|
516
519
|
|
517
520
|
{:class_name => code_name, :attr_encoded => Base64.encode64(attrs), :sw_config => {:project_id => project_id, :token => token}}.to_json
|
518
521
|
end
|
522
|
+
|
523
|
+
private
|
524
|
+
def clusters_list_base(options = {})
|
525
|
+
res = @api.clusters_list(options)
|
526
|
+
(res['clusters'] || []).map { |s| OpenStruct.new(s.merge('_id' => s['id'])) }
|
527
|
+
end
|
519
528
|
end
|
520
529
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_worker_ng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kirilenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: iron_core
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
version: 1.3.6
|
242
242
|
requirements: []
|
243
243
|
rubyforge_project:
|
244
|
-
rubygems_version: 2.4.
|
244
|
+
rubygems_version: 2.4.8
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: New generation ruby client for IronWorker
|