seiso-import_master 0.0.8 → 0.0.9
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
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjFmMWVjMjM0ZTkwMjUyMGMyOWNhODJlZGEwYTlkM2E1MTFlNjJmMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmRkMmRlMzE4YzM5MmVmZDFjMGQ0NDI4MTk5NTU3NDAzMDBjNTFmMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDBhMGUwOGVlMzdlZDZjYTc0N2M1YzgxNmEzYTVkMmM2OTc0ZGNkNjhkYmYw
|
10
|
+
M2RhM2Q1ZDJiOTMyNGVhZmMwYTBiYTdkZTYzOTViYmMyNGYyNTk5YTZkZGNl
|
11
|
+
NjRhYWU3NDY3MGYwYTJjMGFkNmM4MTBhODBhYjJkZjkyY2JkOWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjczZjBjYTE0Y2Q4NTU1OTRjMmJlMjcxMDc0YzZhMmIwY2I1MmNlYTBkNGJk
|
14
|
+
YzE0OTlmMjA2N2NkOWMzYzViODM2OWRhYjJiZmMwNzU1ZDg0ZTkzNjBjZmVl
|
15
|
+
OTIyYTdiZDY3MGM0OGQ2NWRhM2E1YTdkNzZiYmQ5ZmU2MDRhZmU=
|
@@ -41,8 +41,7 @@ module Seiso
|
|
41
41
|
nodes_uri = @uri_factory_v1.nodes_uri true
|
42
42
|
@rest_connector_v1.post(nodes_uri, seiso_nodes)
|
43
43
|
|
44
|
-
|
45
|
-
import_nips_quickly_with_keepalive nips
|
44
|
+
import_nips nips
|
46
45
|
end
|
47
46
|
|
48
47
|
private
|
@@ -52,17 +51,7 @@ module Seiso
|
|
52
51
|
# puts "TODO Delete stale nodes from seiso"
|
53
52
|
end
|
54
53
|
|
55
|
-
def
|
56
|
-
seiso_nips = nips.map { |nip| @mapper.seiso_nip nip }
|
57
|
-
seiso_nips.each do |nip|
|
58
|
-
node_name = nip['node']['name']
|
59
|
-
ip_address = nip['ipAddress']
|
60
|
-
nip_uri = @uri_factory_v1.node_ip_address_uri(node_name, ip_address)
|
61
|
-
@rest_connector_v1.put(nip_uri, nip)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
def import_nips_quickly_with_keepalive(nips)
|
54
|
+
def import_nips(nips)
|
66
55
|
seiso_nip_pairs = nips.map do |nip|
|
67
56
|
node_name = nip['node']
|
68
57
|
ip_address = nip['ipAddress']
|
@@ -71,6 +60,7 @@ module Seiso
|
|
71
60
|
"resource" => @mapper.seiso_nip(nip)
|
72
61
|
}
|
73
62
|
end
|
63
|
+
# Uses keepalive
|
74
64
|
@rest_connector_v1.put_all seiso_nip_pairs
|
75
65
|
end
|
76
66
|
end
|
@@ -91,6 +91,7 @@ module Seiso
|
|
91
91
|
{
|
92
92
|
'key' => hs['key'],
|
93
93
|
'name' => hs['name'],
|
94
|
+
'description' => hs['description'],
|
94
95
|
'statusType' => { 'key' => hs['statusType'] }
|
95
96
|
}
|
96
97
|
}
|
@@ -152,6 +153,7 @@ module Seiso
|
|
152
153
|
{
|
153
154
|
'key' => rs['key'],
|
154
155
|
'name' => rs['name'],
|
156
|
+
'description' => rs['description'],
|
155
157
|
'statusType' => { 'key' => rs['statusType'] }
|
156
158
|
}
|
157
159
|
}
|
@@ -161,7 +163,8 @@ module Seiso
|
|
161
163
|
->(sg) {
|
162
164
|
{
|
163
165
|
'key' => sg['key'],
|
164
|
-
'name' => sg['name']
|
166
|
+
'name' => sg['name'],
|
167
|
+
'description' => sg['description']
|
165
168
|
}
|
166
169
|
}
|
167
170
|
end
|
@@ -170,7 +173,8 @@ module Seiso
|
|
170
173
|
->(st) {
|
171
174
|
{
|
172
175
|
'key' => st['key'],
|
173
|
-
'name' => st['name']
|
176
|
+
'name' => st['name'],
|
177
|
+
'description' => st['description']
|
174
178
|
}
|
175
179
|
}
|
176
180
|
end
|
@@ -179,7 +183,8 @@ module Seiso
|
|
179
183
|
->(st) {
|
180
184
|
{
|
181
185
|
'key' => st['key'],
|
182
|
-
'name' => st['name']
|
186
|
+
'name' => st['name'],
|
187
|
+
'description' => st['description']
|
183
188
|
}
|
184
189
|
}
|
185
190
|
end
|
data/seiso-import_master.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "seiso-import_master"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.9"
|
8
8
|
spec.authors = ["Willie Wheeler"]
|
9
9
|
spec.email = ["wwheeler@expedia.com"]
|
10
10
|
spec.summary = "Imports Seiso data master files into Seiso."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seiso-import_master
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willie Wheeler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|