awful 0.0.147 → 0.0.148

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cf58f0a62021dee6eba8a3ac79bbc5a603f65c6
4
- data.tar.gz: 7723196a12129362a056ed5f77e693dfd8f2337a
3
+ metadata.gz: d420f25ad52c2ef47831260ad3877200ce63db51
4
+ data.tar.gz: 5cb75305af243c48deb0fe2883345a77759063a6
5
5
  SHA512:
6
- metadata.gz: 27efda1c6409cdb2e4ee231e50bd74ff590a49a92aadb6aef976abf05101f9e241109c9c16f68a9ecfe8b5b2fef76b92c7667ece59f0c03747941515a03256a9
7
- data.tar.gz: 40aca640f79a9cf8679e30292749ac2c51fb5700199c4a5329fd563c66a681adafb2ed673eccad5a0651bf4b59ae652e940872a2ed49ba7805460c7b466b8c4a
6
+ metadata.gz: 7026740cf81eff9e4cc493b37d18d0ef50b673c3a6f1016bf3d126f7c7e9ddd767cf67ae9e7572ee2bbf624066ec876176e8ca8749e9d58c625e1a2a11edb7da
7
+ data.tar.gz: 0df95ff8ef59e626b459b854f3482fbf93b5fb8f48db16e55eeb91ed6ba8aba00cdfa752f8bd7a46a683639146f8158bfc5a9869f50b61e10e640a484aa88709
@@ -39,9 +39,9 @@ module Awful
39
39
  items.output do |list|
40
40
  if options[:long]
41
41
  print_table list.map { |i|
42
- origins = i.origins.items.map(&:domain_name).join(',')
42
+ origins = i.origins.items.map(&:domain_name).join(',').slice(0..40)
43
43
  state = i.enabled ? :Enabled : :Disabled
44
- [ i.id, i.domain_name, origins, color(i.status), color(state), i.last_modified_time ]
44
+ [ i.id, i.domain_name, i.comment, origins, color(i.status), color(state), i.last_modified_time ]
45
45
  }
46
46
  else
47
47
  puts list.map(&:id).sort
@@ -56,6 +56,13 @@ module Awful
56
56
  end
57
57
  end
58
58
 
59
+ desc 'status ID', 'show status for distribution'
60
+ def status(id)
61
+ cloudfront.get_distribution(id: id).distribution.status.output do |status|
62
+ puts color(status)
63
+ end
64
+ end
65
+
59
66
  desc 'aliases ID [LIST]', 'get/set aliases for distribution'
60
67
  method_option :add, aliases: '-a', type: :boolean, default: false, desc: 'add list to existing aliases'
61
68
  method_option :delete, aliases: '-d', type: :boolean, default: false, desc: 'delete list from existing aliases'
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.147'
2
+ VERSION = '0.0.148'
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.147
4
+ version: 0.0.148
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister