itamae-mitsurin 0.48 → 0.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/itamae-mitsurin/resource/aws_route53_rrset.rb +10 -1
- data/lib/itamae-mitsurin/version.txt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f519fd44a8b4e97837b902588325a3d02247af5e
|
4
|
+
data.tar.gz: 8e8288b6e876a6d1c5c7a265786a6247df20413e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1fc3b6694b46554f6c6bbf87636c1e0933b788f4d574c4e077911273ba5e9a67b01e869c1059d4907005769325b1c032c556250aaa9ef78074ee8d69a64e9b7
|
7
|
+
data.tar.gz: d464ef05750dc5938fb820e99ed1f2d313c6f6dee984c7f1f09f3c0818762e4de84feb313c2a78e9cbb7f95700a0408b64634c1bbe6165651de88e7c623d7dae
|
data/.gitignore
CHANGED
@@ -70,13 +70,22 @@ module ItamaeMitsurin
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def action_create(options)
|
73
|
-
|
73
|
+
if @record.resource_record_sets.empty?
|
74
74
|
resp = @route53.change_resource_record_sets(@rrset_hash)
|
75
75
|
ItamaeMitsurin.logger.debug "#{resp}"
|
76
76
|
ItamaeMitsurin.logger.color(:green) do
|
77
77
|
ItamaeMitsurin.logger.info "aws_route53_rrset[#{attributes.name}] created record"
|
78
78
|
end
|
79
79
|
updated!
|
80
|
+
else
|
81
|
+
unless /#{attributes.name}/ === @record[0][0][0]
|
82
|
+
resp = @route53.change_resource_record_sets(@rrset_hash)
|
83
|
+
ItamaeMitsurin.logger.debug "#{resp}"
|
84
|
+
ItamaeMitsurin.logger.color(:green) do
|
85
|
+
ItamaeMitsurin.logger.info "aws_route53_rrset[#{attributes.name}] created record"
|
86
|
+
end
|
87
|
+
updated!
|
88
|
+
end
|
80
89
|
end
|
81
90
|
end
|
82
91
|
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.49
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-mitsurin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.49'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akihiro Kamiyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|