awful 0.0.44 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/cloudformation.rb +12 -0
- data/lib/awful/version.rb +1 -1
- 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: b824558eb666ae30c0aecbac54f9fd46fce8adb5
|
4
|
+
data.tar.gz: cccea53cb31a6ba9973e4e1d1cc992405226d848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89acdf2774cb6e6e80bc114da046043a001bbc47bebf1ca4371606cc7bc650a00ebd4c1bd5a4396cf07d39a46ad091237d896eb852e0adba971078c198ba45c7
|
7
|
+
data.tar.gz: 1bf8c09c3b25d7ac978e3facc2d5d646135db8dc5e0144ad470479a974b421dde729830a62eeb55d104d134b7deb89d1269440ff549815e7d5aadcb909516ef2
|
data/lib/awful/cloudformation.rb
CHANGED
@@ -89,6 +89,18 @@ module Awful
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
+
desc 'resources NAME', 'list resources for stack with name NAME'
|
93
|
+
method_option :long, aliases: '-l', default: false, desc: 'Long listing'
|
94
|
+
def resources(name)
|
95
|
+
cf.list_stack_resources(stack_name: name).stack_resource_summaries.tap do |resources|
|
96
|
+
if options[:long]
|
97
|
+
print_table resources.map { |r| [r.logical_resource_id, r.physical_resource_id, r.resource_type, r.resource_status, r.resource_status_reason] }
|
98
|
+
else
|
99
|
+
puts resources.map(&:logical_resource_id)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
92
104
|
desc 'limits', 'describe cloudformation account limits'
|
93
105
|
def limits
|
94
106
|
cf.describe_account_limits.account_limits.tap do |limits|
|
data/lib/awful/version.rb
CHANGED