bim 0.1.1 → 0.1.2

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: d9b6eb68a2daa7c9ffa120de5a389c1e9480e6aa
4
- data.tar.gz: 22454703346d548e13a79edf42879e9e88717cd7
3
+ metadata.gz: a868333137d0ecaf6d8646b24aa0ac303b3d0ec1
4
+ data.tar.gz: 9b295de401c805e2730a6907ca16fd1e9a4c3d3c
5
5
  SHA512:
6
- metadata.gz: 216f1883eb5acca0cb09b4eaee5dfc151c7639269a31c377dfa53a0103640fddd9265601b5e0fa3930e6d44799a4dcae3a234a54ee636b323e21521d3e322514
7
- data.tar.gz: 40e1db06639a8033585b2205ddc0ca5bb32272ccbd3bc946af0bad814915e88db2bdf1b716ef403853ba3ab90b3e1550d7083dff3d6bda33525b804b8e375a9f
6
+ metadata.gz: b840b0e83780f36af10667eb680d6582c3efdd389a33ce4b4b934e4b61b6e99050d132724b21ae3d478b7e2535835ac89f89a55b96de3d875674fd10787227ca
7
+ data.tar.gz: 5757876263d0a08486a8c994343467aa1e712ccabfb59c352d2844ed111c7e328f522497267e0b1ebb4a22d1f0edf9e123924e893ae2c7264c698f61cc199700
@@ -91,7 +91,7 @@ module Bim
91
91
  JSON.parse(vs_list)['items'].each do |vs|
92
92
  next if test && vs['name'] != Bim::TEST_VS
93
93
 
94
- names = JSON.parse(profiles(vs['profilesReference']['link']))['items'].map { |p| p['name'] }
94
+ names = JSON.parse(profiles_items(vs['profilesReference']['link']))['items'].map { |p| p['name'] }
95
95
 
96
96
  next unless names.include?(old_profilename)
97
97
  # can not update only diff.
@@ -110,6 +110,11 @@ module Bim
110
110
 
111
111
  private
112
112
 
113
+ def profiles_items(link)
114
+ uri = URI.parse(link.sub('localhost', BIGIP_HOST))
115
+ get_body(uri)
116
+ end
117
+
113
118
  def update_profiles(link, names)
114
119
  uri = URI.parse(link.sub('localhost', BIGIP_HOST))
115
120
  req = request(uri, Bim::AUTH, 'application/json', 'PATCH', { profiles: names }.to_json)
@@ -1,3 +1,3 @@
1
1
  module Bim
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - littlekbt