CfnTools 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mstacks.rb +20 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 532cc47793044bcb049432832a7439e568578ad1
4
- data.tar.gz: 00aee917d254b5796ed43dc811db6f5f70a143f2
3
+ metadata.gz: c603da391b2e0249a3ecb6835fd33af05ca2727e
4
+ data.tar.gz: dc38705a22794cc003ebe55e95414da82cba809b
5
5
  SHA512:
6
- metadata.gz: 2f848b980e5914f2ab391c590a1b236a3402a847bc21bd252bff448631b6b763690fc3767457bed9afc2c29d6b653516fbbe34ef08c2f40e71e7e9f70ce1cc57
7
- data.tar.gz: a0aeaaa7be9fa0f2f16a371d2ced4b7352b0651f169aeb0fc1c7df3028d1048140d12bd7fff7900f53538d9bc111fe1b5158b516e9255a2bc218606b1e46564b
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 => name,
42
- :stack_type => p[0],
43
- :env_name => p[1],
44
- :env_type => p[2]
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CfnTools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Schrock