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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64f1d5928c3462219284b63114fe262281a614eb
4
- data.tar.gz: a4fd6ed72199e4e61aa37766907c5de69f946835
3
+ metadata.gz: f519fd44a8b4e97837b902588325a3d02247af5e
4
+ data.tar.gz: 8e8288b6e876a6d1c5c7a265786a6247df20413e
5
5
  SHA512:
6
- metadata.gz: 8d3aacb09e6e18c82dd43ad38770a4e03c4ef59722b6d62c73d87bb09bcce638ffbc58c9845be811877ed858b0aa46c4b526d86452d2ba819311500fac0949cd
7
- data.tar.gz: b8e6ad75ae054baae4ffbeff671e1f4335219ba209f47bc81cc050cdae63bd03dd0318f3fb53d13768a032844246ef77e1822227f160613d99e5cca51a1deeb0
6
+ metadata.gz: e1fc3b6694b46554f6c6bbf87636c1e0933b788f4d574c4e077911273ba5e9a67b01e869c1059d4907005769325b1c032c556250aaa9ef78074ee8d69a64e9b7
7
+ data.tar.gz: d464ef05750dc5938fb820e99ed1f2d313c6f6dee984c7f1f09f3c0818762e4de84feb313c2a78e9cbb7f95700a0408b64634c1bbe6165651de88e7c623d7dae
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ test/version_tmp
17
17
  tmp
18
18
  .vagrant
19
19
  Gemfile.local
20
+ logs/
@@ -70,13 +70,22 @@ module ItamaeMitsurin
70
70
  end
71
71
 
72
72
  def action_create(options)
73
- unless /#{attributes.name}/ === @record[0][0][0]
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.48
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.48'
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: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor