awful 0.0.144 → 0.0.145
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/route53.rb +4 -1
- 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: 8918e2e258dfa5fd223ed731e84d12e47a0a2e53
|
4
|
+
data.tar.gz: 29940f711e894a9bff521aceca04688c3d2956c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00cc479ade9ac596d3ff8f9a16c0ffffbcbfa5245d71ddc48fe6bda9e7df3b4ed3343aad75e283611c7cd9958a521558ee2244c5dd09b17e9126a704dd97113f
|
7
|
+
data.tar.gz: b4506f3b63b4531938994e00f39d8545a5c272ad320d3328524547c12055b3f55fd01abd12f278eaeeb3e37fa110bbaf1822ded9879d097f5b8499d631aad03a
|
data/lib/awful/route53.rb
CHANGED
@@ -94,13 +94,16 @@ module Awful
|
|
94
94
|
method_option :type, aliases: '-t', type: :string, default: nil, desc: 'DNS type to begin the listing of records'
|
95
95
|
def dump(name)
|
96
96
|
zone = name.split('.').last(2).join('.')
|
97
|
+
name += '.' unless name.end_with?('.') # output will have dot at end
|
97
98
|
params = {
|
98
99
|
hosted_zone_id: get_zone_by_name(zone),
|
99
100
|
start_record_name: name,
|
100
101
|
start_record_type: options[:type],
|
101
102
|
max_items: options[:max_items]
|
102
103
|
}
|
103
|
-
route53.list_resource_record_sets(params).resource_record_sets.
|
104
|
+
route53.list_resource_record_sets(params).resource_record_sets.select do |record|
|
105
|
+
record.name == name
|
106
|
+
end.output do |records|
|
104
107
|
records.each do |record|
|
105
108
|
puts YAML.dump(stringify_keys(record.to_hash))
|
106
109
|
end
|
data/lib/awful/version.rb
CHANGED