stax 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stax/aws/cfn.rb +3 -9
- data/lib/stax/cli/ls.rb +3 -2
- data/lib/stax/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee967601a71eb9b736404783e6200e3f18322a24ba1314b0bae288398b9d0b16
|
4
|
+
data.tar.gz: 9c22a416c4731d196734c92e365ee187fbee491bf7cbb8ee8015f2e76f655ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0546f69bd73770304d2fed1ca1d914407d4ca1f83a71da3ac8ac5d7cf7465c17e8d62fd661f0cc4f49663949d3206b4e1883d21e35fb4ab6ef0f61adb6c9071
|
7
|
+
data.tar.gz: b2990d6e91472feee663c6f5c6f2fa06eab9a3186c9c8619a3834822531d3dcddd353a33a63869690f764ab6fc5602bc1fce2f2af1391c6ddae887ccdfe4514b
|
data/lib/stax/aws/cfn.rb
CHANGED
@@ -35,9 +35,7 @@ module Stax
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def stacks
|
38
|
-
|
39
|
-
client.list_stacks(stack_status_filter: STATUSES, next_token: token)
|
40
|
-
end
|
38
|
+
client.list_stacks(stack_status_filter: STATUSES).map(&:stack_summaries).flatten
|
41
39
|
end
|
42
40
|
|
43
41
|
def template(name)
|
@@ -45,9 +43,7 @@ module Stax
|
|
45
43
|
end
|
46
44
|
|
47
45
|
def resources(name)
|
48
|
-
|
49
|
-
client.list_stack_resources(stack_name: name, next_token: token)
|
50
|
-
end
|
46
|
+
client.list_stack_resources(stack_name: name).map(&:stack_resource_summaries).flatten
|
51
47
|
end
|
52
48
|
|
53
49
|
def resources_by_type(name, type)
|
@@ -57,9 +53,7 @@ module Stax
|
|
57
53
|
end
|
58
54
|
|
59
55
|
def events(name)
|
60
|
-
|
61
|
-
client.describe_stack_events(stack_name: name, next_token: token)
|
62
|
-
end
|
56
|
+
client.describe_stack_events(stack_name: name).map(&:stack_events).flatten
|
63
57
|
end
|
64
58
|
|
65
59
|
def id(name, id)
|
data/lib/stax/cli/ls.rb
CHANGED
@@ -3,10 +3,11 @@ module Stax
|
|
3
3
|
|
4
4
|
no_commands do
|
5
5
|
def ls_staxfile_stacks
|
6
|
+
stacks = Aws::Cfn.stacks.each_with_object({}) { |s, h| h[s.stack_name] = s }
|
6
7
|
print_table Stax.stack_list.map { |id|
|
7
8
|
name = stack(id).stack_name
|
8
|
-
if (s =
|
9
|
-
[s.stack_name, s.creation_time, color(s.stack_status, Aws::Cfn::COLORS), s.
|
9
|
+
if (s = stacks[name])
|
10
|
+
[s.stack_name, s.creation_time, color(s.stack_status, Aws::Cfn::COLORS), s.template_description]
|
10
11
|
else
|
11
12
|
options[:existing] ? nil : [name, '-']
|
12
13
|
end
|
data/lib/stax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|