CfnTools 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/CfnTools.rb +13 -14
- metadata +6 -8
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fa4b0f7a6618b9ff07a53f7dc816e9a9fab54bd6
|
4
|
+
data.tar.gz: ffe497e34409b62484b545553ce64c7c0d1d387f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f313ea53fc0fffc2258742c94def7a61a50b760aad49551abe8cc9cbd1dfa78e6bddcbe91eeee4cfe87a7c8cda9603217e3758217409652559865afd63d7751b
|
7
|
+
data.tar.gz: 20f590299cbd2da3e5f3945b69a0d03e5eecd82bb862b7dfa2d1ea874e8266361fa124fc9f5c1d0ea06bd1c85e059267d4cbc397168f6dc864254c1f474a4267
|
data/lib/CfnTools.rb
CHANGED
@@ -13,13 +13,11 @@ class CfnTools
|
|
13
13
|
exit 1
|
14
14
|
end
|
15
15
|
|
16
|
-
@substacks =
|
16
|
+
@substacks = get_sub_stacks
|
17
17
|
@stack_as = Array.new()
|
18
18
|
@stack_events = Set.new()
|
19
19
|
|
20
|
-
get_sub_stacks()
|
21
20
|
get_stack_as()
|
22
|
-
|
23
21
|
end
|
24
22
|
|
25
23
|
def ret_stack_name()
|
@@ -46,17 +44,18 @@ class CfnTools
|
|
46
44
|
end
|
47
45
|
|
48
46
|
def get_sub_stacks()
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
47
|
+
substacks = Set.new
|
48
|
+
AWS.memoize do
|
49
|
+
stack = @cfn.stacks[@stack_name]
|
50
|
+
stack.resource_summaries.each do |resource|
|
51
|
+
if resource[:resource_type] == 'AWS::CloudFormation::Stack'
|
52
|
+
if resource[:physical_resource_id].is_a? String
|
53
|
+
substacks.add( resource[:physical_resource_id] )
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
return substacks
|
60
59
|
end
|
61
60
|
|
62
61
|
def get_stack_as()
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: CfnTools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.12
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Brian Schrock
|
@@ -21,26 +20,25 @@ files:
|
|
21
20
|
homepage: http://github.com/mantacode/CfnTools
|
22
21
|
licenses:
|
23
22
|
- MIT
|
23
|
+
metadata: {}
|
24
24
|
post_install_message:
|
25
25
|
rdoc_options: []
|
26
26
|
require_paths:
|
27
27
|
- lib
|
28
28
|
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
29
|
requirements:
|
31
|
-
- -
|
30
|
+
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
33
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
34
|
requirements:
|
37
|
-
- -
|
35
|
+
- - ">="
|
38
36
|
- !ruby/object:Gem::Version
|
39
37
|
version: '0'
|
40
38
|
requirements: []
|
41
39
|
rubyforge_project:
|
42
|
-
rubygems_version:
|
40
|
+
rubygems_version: 2.2.2
|
43
41
|
signing_key:
|
44
|
-
specification_version:
|
42
|
+
specification_version: 4
|
45
43
|
summary: CfnTools
|
46
44
|
test_files: []
|