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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce5169bf6395c0b07962148de88f5eab3b6160ec
|
4
|
+
data.tar.gz: 8d77a9b8d11685ad188ed68830797d8d5b87ea5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
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
|
-
|
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 = {})
|
data/lib/awspec/version.rb
CHANGED