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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96b4131fcb782d12c4128d17b7bc0e81c5c224bb
4
- data.tar.gz: 9b8eeadd9d11ac5034a08707e345f57c561c55d7
3
+ metadata.gz: 80f74868cfa7dcac4f3f5f5f76f41e48551ba91a
4
+ data.tar.gz: 2780aedc430383b20e660659ae809424db571bd5
5
5
  SHA512:
6
- metadata.gz: 03d80588c07deb772c24a079a09ccca2b2927419396f8e5d964bfbc049b58f5ffd753ba9e12394dfec8a49ed43a547bf8f998f9cb9a334b5ca32306af5239faa
7
- data.tar.gz: 911427fa1501d9bcf311c65ce3420120f15f172406fa5519736b8bef00c74e92719081f28f47db227ca6f38d2f6e04c119bf8200fa143e314d49c01f4fefad66
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
- res = @api.clusters_list
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
- res = @api.clusters_shared_list
495
- res['clusters'].map { |s| OpenStruct.new(s.merge('_id' => s['id'])) }
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
@@ -1,5 +1,5 @@
1
1
  module IronWorkerNG
2
- VERSION = '1.6.8'
2
+ VERSION = '1.6.9'
3
3
 
4
4
  def self.version
5
5
  VERSION
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.8
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-01-26 00:00:00.000000000 Z
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.3
244
+ rubygems_version: 2.4.8
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: New generation ruby client for IronWorker