awspec 0.25.1 → 0.25.2

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: def9f750f0f2150d672d1aa4c50197ff3e299716
4
- data.tar.gz: 216208767ff4fe7bda45cb5945206c60819e07a5
3
+ metadata.gz: ce5169bf6395c0b07962148de88f5eab3b6160ec
4
+ data.tar.gz: 8d77a9b8d11685ad188ed68830797d8d5b87ea5a
5
5
  SHA512:
6
- metadata.gz: 9bda6e377f5304b9775a4fb5b80428b71264cc0201a1d4ec2b7a894dc3f77df1d3bab8e43b9081946cf5f8bf78d3883646b7c4bbd05787b3b19f58baa90377db
7
- data.tar.gz: 2bf00d41466a01c5a06212ac00e7ae813d49bc34488e9e8b0204ef0af949f3565184cfae5b235f2da25f2a5f432bf71be349eae7301b9b372e65536cc1c85ccf
6
+ metadata.gz: 0273120b43cc0ad4160bd152047ae27e1fcde7266de22c7666f8f58139f9237d7306d8db73ffcf23eea113f2064d8693972bf990b8bea445fb9b5e027f473e92
7
+ data.tar.gz: d78cb34c9292112ac1d514777bcf8a45c7ce5ab0d5b4f4b7ba08425de20548a9090c8de9c3c01931be13cfa8f1e9d8a4641cda058383c435d4f95c276b4e49c5
@@ -12,6 +12,18 @@ module Awspec::Helper
12
12
  (res.next_page? && res = res.next_page) || break
13
13
  end
14
14
  end
15
+
16
+ def select_record_sets_by_hosted_zone_id(id)
17
+ selected = []
18
+ res = @route53_client.list_resource_record_sets({
19
+ hosted_zone_id: id
20
+ })
21
+ loop do
22
+ selected += res.resource_record_sets
23
+ (res.next_page? && res = res.next_page) || break
24
+ end
25
+ selected
26
+ end
15
27
  end
16
28
  end
17
29
  end
@@ -10,7 +10,7 @@ Aws.config[:route53] = {
10
10
  }
11
11
  ],
12
12
  marker: '',
13
- is_truncated: true,
13
+ is_truncated: false,
14
14
  next_marker: '',
15
15
  max_items: 100
16
16
  },
@@ -86,7 +86,7 @@ Aws.config[:route53] = {
86
86
  }
87
87
  }
88
88
  ],
89
- is_truncated: true,
89
+ is_truncated: false,
90
90
  max_items: 100
91
91
  }
92
92
  }
@@ -7,10 +7,7 @@ module Awspec::Type
7
7
  @resource = find_hosted_zone(id)
8
8
  @id = @resource[:id] if @resource
9
9
  return unless @id
10
- res = @route53_client.list_resource_record_sets({
11
- hosted_zone_id: @id
12
- })
13
- @resource_record_sets = res.resource_record_sets
10
+ @resource_record_sets = select_record_sets_by_hosted_zone_id(@id)
14
11
  end
15
12
 
16
13
  def has_record_set?(name, type, value, options = {})
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.25.1'
2
+ VERSION = '0.25.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.1
4
+ version: 0.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW