smps 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +4 -0
- data/lib/smps.rb +20 -9
- data/lib/smps/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45726b22b9b1656ce417d47fec4e4a811bc0f532
|
4
|
+
data.tar.gz: 7e7e42647231aa41f5f477bf0d635ce18de7b510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3369bf6cf940ac85300d11ba159b9a509fb90348bff06208eed0d9c607b742e95189a224d42650525878019125c2e6ed48acf4c85a9fc10786a8e32f149f10cb
|
7
|
+
data.tar.gz: 679b6c53927b469b86dfc8b14a37785cc297044bbd2a67dccba5b8be4ba5ed5318d8550428def8836d9db79c2870ade60876a81c7e40f2047909b0f3fc012f57
|
data/changelog.md
CHANGED
data/lib/smps.rb
CHANGED
@@ -34,25 +34,36 @@ class SmPs
|
|
34
34
|
path = options.fetch(:path)
|
35
35
|
recursive = options[:recursive]
|
36
36
|
decrypt = options[:decrypt] || true
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
37
|
+
@parameters_by_path_list = []
|
38
|
+
# while result has 'next_token'
|
39
|
+
fetch_more = true
|
40
|
+
next_token = nil
|
41
|
+
while fetch_more
|
42
|
+
params = ssm_client.get_parameters_by_path(
|
43
|
+
path: path,
|
44
|
+
recursive: recursive,
|
45
|
+
with_decryption: decrypt,
|
46
|
+
next_token: next_token
|
47
|
+
)
|
48
|
+
if params.next_token
|
49
|
+
next_token = params.next_token
|
50
|
+
else
|
51
|
+
fetch_more = false
|
52
|
+
end
|
53
|
+
store_parameters params
|
54
|
+
end
|
55
|
+
@parameters_by_path_list
|
43
56
|
end
|
44
57
|
|
45
58
|
def store_parameters(params)
|
46
59
|
return if params.nil?
|
47
|
-
list = []
|
48
60
|
params.parameters.each do |parameter|
|
49
61
|
@parameters[parameter.name] = SmPs::Parameter.new(
|
50
62
|
ssm: ssm_client, fetch: false,
|
51
63
|
name: parameter.name, value: parameter.value, type: parameter.type
|
52
64
|
)
|
53
|
-
|
65
|
+
@parameters_by_path_list << @parameters[parameter.name]
|
54
66
|
end
|
55
|
-
list
|
56
67
|
end
|
57
68
|
|
58
69
|
# def info
|
data/lib/smps/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan - Zipkid - Goethals
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|