awful 0.0.45 → 0.0.46

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: b824558eb666ae30c0aecbac54f9fd46fce8adb5
4
- data.tar.gz: cccea53cb31a6ba9973e4e1d1cc992405226d848
3
+ metadata.gz: 1d157d01948ca24e5720e4bb99092ac61f59f94d
4
+ data.tar.gz: 883ecf5a96b431922f6a49277e251a8ecdc35945
5
5
  SHA512:
6
- metadata.gz: 89acdf2774cb6e6e80bc114da046043a001bbc47bebf1ca4371606cc7bc650a00ebd4c1bd5a4396cf07d39a46ad091237d896eb852e0adba971078c198ba45c7
7
- data.tar.gz: 1bf8c09c3b25d7ac978e3facc2d5d646135db8dc5e0144ad470479a974b421dde729830a62eeb55d104d134b7deb89d1269440ff549815e7d5aadcb909516ef2
6
+ metadata.gz: cabb8bd5d87cd0107884fb47fbb4ef3ea7c911c99c6d73bd06b004a24fe90434cfdedd0beb2c567e332564995689e14127c428a6d651cf1af0ffb389bdad0366
7
+ data.tar.gz: 2331c69b58f074f94e779385c9c4b17af4112e8040059e8215834c73025b1aa3ca33c7eb07b00886dc36dca454f8b24290cbc4b39827e6728a781fa15cab86e5
@@ -101,6 +101,21 @@ module Awful
101
101
  end
102
102
  end
103
103
 
104
+ desc 'id NAME RESOURCE', 'get physical_resource_id from a logical_resource_id RESOURCE for stack with NAME'
105
+ method_option :all, aliases: '-a', default: false, desc: 'Return all details about resource as YAML'
106
+ def id(name, resource)
107
+ detail = cf.describe_stack_resource(stack_name: name, logical_resource_id: resource).stack_resource_detail
108
+ if options[:all]
109
+ detail.tap do |d|
110
+ puts YAML.dump(stringify_keys(d.to_hash))
111
+ end
112
+ else
113
+ detail.physical_resource_id.tap do |id|
114
+ puts id
115
+ end
116
+ end
117
+ end
118
+
104
119
  desc 'limits', 'describe cloudformation account limits'
105
120
  def limits
106
121
  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.45"
2
+ VERSION = "0.0.46"
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.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister