awful 0.0.118 → 0.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/awful/cloudformation.rb +5 -5
- 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: d2e51f520599215586292fa557869b2348ec4f8e
|
|
4
|
+
data.tar.gz: 1e3f0b87e99fb43458f033626e7af2f37f4a37c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96c620f51dfa7cb7043a6033411bca9a81da3a67a2df8147f1e227cb81659dfb3dded1375c1d303f50e3321a656a405756d3a376ce9933b095129096810f3507
|
|
7
|
+
data.tar.gz: f917c55453929743f9f8c7b3f9775e3bfa6214d621ff8006f50e8b6d7dd8b8a8d9523ac0fb36b00e5dfb809a2c4a40436b84075cdb8fd5d4ee24edce355f5f5c
|
data/lib/awful/cloudformation.rb
CHANGED
|
@@ -83,7 +83,7 @@ module Awful
|
|
|
83
83
|
true
|
|
84
84
|
rescue Aws::CloudFormation::Errors::ValidationError
|
|
85
85
|
false
|
|
86
|
-
end.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
215
|
+
detail.physical_resource_id.output do |id|
|
|
216
216
|
puts id
|
|
217
217
|
end
|
|
218
218
|
end
|
data/lib/awful/version.rb
CHANGED