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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11f3cb0c491ac167ce83ba7326586888a905752f
4
- data.tar.gz: c2801481c9b3c861b41ec6e4441bb9c853883c59
3
+ metadata.gz: c0e7ce04e338786aaff27a8aff634b4b2359d6b0
4
+ data.tar.gz: 227b9e77e562cd83ba2e42da2a6fcb4fe2968785
5
5
  SHA512:
6
- metadata.gz: 8fb2c497bddc4ea72cd40ed37dd0bf08c824cd4acb44aba51120ff0768064ae029485ad194fc968e159403850a67d233cbd680bd82fb6ecf4b14c94730ac9b81
7
- data.tar.gz: 8e89918143775690bdd23bca9060198e54c68916bdc20d048116a7c4544df8846f18f14732a59cffdcf6eb8b571e5bef440d9a852937df90c423c1c6c82e51b4
6
+ metadata.gz: 23e28b5ed32c58399acc4d8039c5d5db9386fd309e010f99d6710f0a9ac42962bd617f1c1954106f7df7ea00d9656847fb73b86a04199f0d838c9ce3bf02559a
7
+ data.tar.gz: e7b2df9a0151c931b3a066fae151dd9e6b603249279d03e5861d8d89adc5d39a667f73387e0a323693af9f3569641411e7904bd83347a54eb8952f58d11ec615
@@ -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 resources.map { |r| [r.logical_resource_id, r.physical_resource_id, r.resource_type, color(r.resource_status), r.resource_status_reason] }
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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.172'
2
+ VERSION = '0.0.173'
3
3
  end
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.172
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-04-19 00:00:00.000000000 Z
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.5.2
239
+ rubygems_version: 2.6.8
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Simple AWS command-line tool.