CfnTools 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mstacks.rb +20 -4
- 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: c603da391b2e0249a3ecb6835fd33af05ca2727e
|
4
|
+
data.tar.gz: dc38705a22794cc003ebe55e95414da82cba809b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cca85c4b26fdc8623016dbfe0acfdb16c099b7499b9a7bdee70df8e8f2fc3a89198c1fd46befbe538653ca42c1596774b626f8d99e8d0de941c3afdfff8cf234
|
7
|
+
data.tar.gz: b702e0a03b13dcdd4ab130cc26e6a1eee331a6f3a76fe39799d8b6c2e37a99594f4228e7c89eb13fc9fcf72351369306d888ea17cc0bb91e91402ba3122bb0f6
|
data/lib/mstacks.rb
CHANGED
@@ -2,6 +2,18 @@ require 'aws-sdk'
|
|
2
2
|
require 'set'
|
3
3
|
|
4
4
|
class Mstacks
|
5
|
+
def active_mstacks_hash()
|
6
|
+
stacks = {}
|
7
|
+
get_active_stack_summaries.each do |summary|
|
8
|
+
stack_identity = parse_stack_identity(summary[:stack_name])
|
9
|
+
if stack_identity
|
10
|
+
stack_info = stack_identity.merge(summary)
|
11
|
+
stacks[summary[:stack_name]] = stack_info
|
12
|
+
end
|
13
|
+
end
|
14
|
+
return stacks
|
15
|
+
end
|
16
|
+
|
5
17
|
def active_mstacks()
|
6
18
|
a = []
|
7
19
|
get_active_stack_summaries.each do |summary|
|
@@ -38,10 +50,14 @@ class Mstacks
|
|
38
50
|
return nil
|
39
51
|
end
|
40
52
|
return {
|
41
|
-
:stack_name
|
42
|
-
|
43
|
-
:
|
44
|
-
|
53
|
+
:stack_name => name,
|
54
|
+
'StackName' => name,
|
55
|
+
:stack_type => p[0],
|
56
|
+
'StackType' => p[0],
|
57
|
+
:env_name => p[1],
|
58
|
+
'EnvironmentName' => p[1],
|
59
|
+
:env_type => p[2],
|
60
|
+
'EnvironmentType' => p[2]
|
45
61
|
}
|
46
62
|
end
|
47
63
|
|