bim 0.1.1 → 0.1.2
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/lib/bim/action/ssl.rb +6 -1
- data/lib/bim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a868333137d0ecaf6d8646b24aa0ac303b3d0ec1
|
4
|
+
data.tar.gz: 9b295de401c805e2730a6907ca16fd1e9a4c3d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b840b0e83780f36af10667eb680d6582c3efdd389a33ce4b4b934e4b61b6e99050d132724b21ae3d478b7e2535835ac89f89a55b96de3d875674fd10787227ca
|
7
|
+
data.tar.gz: 5757876263d0a08486a8c994343467aa1e712ccabfb59c352d2844ed111c7e328f522497267e0b1ebb4a22d1f0edf9e123924e893ae2c7264c698f61cc199700
|
data/lib/bim/action/ssl.rb
CHANGED
@@ -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(
|
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)
|
data/lib/bim/version.rb
CHANGED