awful 0.0.118 → 0.0.119

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: 09e5e40087f087c1a4093a20f44f5e9c6f119e55
4
- data.tar.gz: c7f6ce10622d8587f98ea5ff628dfdede7afcc4d
3
+ metadata.gz: d2e51f520599215586292fa557869b2348ec4f8e
4
+ data.tar.gz: 1e3f0b87e99fb43458f033626e7af2f37f4a37c1
5
5
  SHA512:
6
- metadata.gz: 13908719df01ce7c541fcb3305ed7238a0b1129e3691050176e929388d2039c39488a559fd03a5d2ab1e3ce71fb72909e519e6576ee110bb662bd6a6aa5d5348
7
- data.tar.gz: 8baea9667e705b1ef53394cf6fb7d448b4bf9e2433ed21271eeb50853519359a829f4b8074d9cafa1eb2ea6f40ab1f2263de98706840f81ef48cdcfc6dfd26ea
6
+ metadata.gz: 96c620f51dfa7cb7043a6033411bca9a81da3a67a2df8147f1e227cb81659dfb3dded1375c1d303f50e3321a656a405756d3a376ce9933b095129096810f3507
7
+ data.tar.gz: f917c55453929743f9f8c7b3f9775e3bfa6214d621ff8006f50e8b6d7dd8b8a8d9523ac0fb36b00e5dfb809a2c4a40436b84075cdb8fd5d4ee24edce355f5f5c
@@ -83,7 +83,7 @@ module Awful
83
83
  true
84
84
  rescue Aws::CloudFormation::Errors::ValidationError
85
85
  false
86
- end.tap(&method(:puts))
86
+ end.output(&method(:puts))
87
87
  end
88
88
 
89
89
  desc 'dump NAME', 'describe stack named NAME'
@@ -101,7 +101,7 @@ module Awful
101
101
  stack.outputs.each_with_object({}) do |output, hash|
102
102
  hash[output.output_key] = output.output_value
103
103
  end
104
- end.tap do |stacks|
104
+ end.output do |stacks|
105
105
  stacks.each do |output|
106
106
  print_table output
107
107
  end
@@ -170,7 +170,7 @@ module Awful
170
170
 
171
171
  desc 'events NAME', 'show events for stack with name NAME'
172
172
  def events(name)
173
- cf.describe_stack_events(stack_name: name).stack_events.tap do |events|
173
+ cf.describe_stack_events(stack_name: name).stack_events.output do |events|
174
174
  print_table events.map { |e| [e.timestamp, color(e.resource_status), e.resource_type, e.logical_resource_id, e.resource_status_reason] }
175
175
  end
176
176
  end
@@ -208,11 +208,11 @@ module Awful
208
208
  def id(name, resource)
209
209
  detail = cf.describe_stack_resource(stack_name: name, logical_resource_id: resource).stack_resource_detail
210
210
  if options[:all]
211
- detail.tap do |d|
211
+ detail.output do |d|
212
212
  puts YAML.dump(stringify_keys(d.to_hash))
213
213
  end
214
214
  else
215
- detail.physical_resource_id.tap do |id|
215
+ detail.physical_resource_id.output do |id|
216
216
  puts id
217
217
  end
218
218
  end
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.118'
2
+ VERSION = '0.0.119'
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.118
4
+ version: 0.0.119
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister