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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad77c39f47bfc1cfd5c3b444daa1df1bc2ce3a34
4
- data.tar.gz: 5c54431173d5efcdfff1b38f8cd48d04b8fef327
3
+ metadata.gz: 8918e2e258dfa5fd223ed731e84d12e47a0a2e53
4
+ data.tar.gz: 29940f711e894a9bff521aceca04688c3d2956c4
5
5
  SHA512:
6
- metadata.gz: 208204e0e42c4d65353f99f7293162f316bf7a21a6b7d7428cf6dfc74c9df4e0a53280bb6db757cf1660fa908d603e8b36b5fe2425f321b00b464cd18d01669e
7
- data.tar.gz: 5343113626490b2c1b96de4f9d440edf99a0812442351e8cacaecf276005501154cae3cc0d57b8ac54069aad9785c752ce18e0f6713c969ca3c10b302d0790f1
6
+ metadata.gz: 00cc479ade9ac596d3ff8f9a16c0ffffbcbfa5245d71ddc48fe6bda9e7df3b4ed3343aad75e283611c7cd9958a521558ee2244c5dd09b17e9126a704dd97113f
7
+ data.tar.gz: b4506f3b63b4531938994e00f39d8545a5c272ad320d3328524547c12055b3f55fd01abd12f278eaeeb3e37fa110bbaf1822ded9879d097f5b8499d631aad03a
@@ -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.output do |records|
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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.144'
2
+ VERSION = '0.0.145'
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.144
4
+ version: 0.0.145
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister