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 +4 -4
- data/lib/awful/cloudfront.rb +9 -2
- 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: d420f25ad52c2ef47831260ad3877200ce63db51
|
4
|
+
data.tar.gz: 5cb75305af243c48deb0fe2883345a77759063a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7026740cf81eff9e4cc493b37d18d0ef50b673c3a6f1016bf3d126f7c7e9ddd767cf67ae9e7572ee2bbf624066ec876176e8ca8749e9d58c625e1a2a11edb7da
|
7
|
+
data.tar.gz: 0df95ff8ef59e626b459b854f3482fbf93b5fb8f48db16e55eeb91ed6ba8aba00cdfa752f8bd7a46a683639146f8158bfc5a9869f50b61e10e640a484aa88709
|
data/lib/awful/cloudfront.rb
CHANGED
@@ -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