awful 0.0.172 → 0.0.173
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 -1
- data/lib/awful/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e7ce04e338786aaff27a8aff634b4b2359d6b0
|
4
|
+
data.tar.gz: 227b9e77e562cd83ba2e42da2a6fcb4fe2968785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23e28b5ed32c58399acc4d8039c5d5db9386fd309e010f99d6710f0a9ac42962bd617f1c1954106f7df7ea00d9656847fb73b86a04199f0d838c9ce3bf02559a
|
7
|
+
data.tar.gz: e7b2df9a0151c931b3a066fae151dd9e6b603249279d03e5861d8d89adc5d39a667f73387e0a323693af9f3569641411e7904bd83347a54eb8952f58d11ec615
|
data/lib/awful/cloudformation.rb
CHANGED
@@ -193,6 +193,7 @@ module Awful
|
|
193
193
|
method_option :long, aliases: '-l', type: :boolean, default: false, desc: 'Long listing'
|
194
194
|
method_option :type, aliases: '-t', type: :array, default: nil, desc: 'Filter by given resource types, e.g. AWS::IAM::Role'
|
195
195
|
method_option :match, aliases: '-m', type: :string, default: nil, desc: 'Filter by case-insensitive regex matching type of resource'
|
196
|
+
method_option :truncate, type: :boolean, default: true, desc: 'truncate long lines'
|
196
197
|
def resources(name)
|
197
198
|
resources = cf.list_stack_resources(stack_name: name).stack_resource_summaries
|
198
199
|
|
@@ -210,7 +211,17 @@ module Awful
|
|
210
211
|
|
211
212
|
resources.output do |resources|
|
212
213
|
if options[:long]
|
213
|
-
print_table
|
214
|
+
print_table(
|
215
|
+
resources.map { |r|
|
216
|
+
[
|
217
|
+
r.logical_resource_id,
|
218
|
+
r.resource_type,
|
219
|
+
color(r.resource_status),
|
220
|
+
r.physical_resource_id,
|
221
|
+
]
|
222
|
+
},
|
223
|
+
truncate: options[:truncate]
|
224
|
+
)
|
214
225
|
else
|
215
226
|
puts resources.map(&:logical_resource_id)
|
216
227
|
end
|
data/lib/awful/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.173
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ric Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
238
|
rubyforge_project:
|
239
|
-
rubygems_version: 2.
|
239
|
+
rubygems_version: 2.6.8
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: Simple AWS command-line tool.
|