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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48a8961aa4e8bca258e18795ef9348b8303657fc
4
- data.tar.gz: fe5188bee47d503f96cd20f09805080338de2603
3
+ metadata.gz: b824558eb666ae30c0aecbac54f9fd46fce8adb5
4
+ data.tar.gz: cccea53cb31a6ba9973e4e1d1cc992405226d848
5
5
  SHA512:
6
- metadata.gz: 200967398880500277c9ade83ede4e72277b74acc4d8646014596c04226b1da85a0a5035d428e21067656245fbbf35e9936ad63c398ef333c821079499c39cc1
7
- data.tar.gz: b552906365f25993fa990444888547a14dd8aaa56e52dfb484cf8747732128a267cf96ed2792456d6565493a1941e70e2255be83c5e7b0aade76fddea1a2c1d4
6
+ metadata.gz: 89acdf2774cb6e6e80bc114da046043a001bbc47bebf1ca4371606cc7bc650a00ebd4c1bd5a4396cf07d39a46ad091237d896eb852e0adba971078c198ba45c7
7
+ data.tar.gz: 1bf8c09c3b25d7ac978e3facc2d5d646135db8dc5e0144ad470479a974b421dde729830a62eeb55d104d134b7deb89d1269440ff549815e7d5aadcb909516ef2
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = "0.0.44"
2
+ VERSION = "0.0.45"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister