cloudformation-tool 0.6.3 → 0.6.4

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: 94cf14cf65ed21845906c4101a74e8bdf04aef9c
4
- data.tar.gz: cff797604a819f29b3a9d442e260c714c031b9b0
3
+ metadata.gz: d5d93b26ffa33f9856b2765bb6a586ddf64cd3aa
4
+ data.tar.gz: 96824fdca328199cb6ab9d49d4f20bc5afd16551
5
5
  SHA512:
6
- metadata.gz: ab8abfdfdc092df31ed5b1de0f8d73f16edb35285646df0445bdc60b15d2f41904309d4f36d376ee24a789f26e8233476720f32f6e68d4d976c1d1d06632b789
7
- data.tar.gz: 09dc1249e7734e35dc44f14093d7a6e90f23a56e842184020bd718fd265513acbdb570a58d8776eaa587028378b8d73246b637e79efa93b109a247d6cc6dd220
6
+ metadata.gz: 2a734f138489a48d96cdb1e3be04014b45b02b8ff8b77463292cec8ffe251956563bf01bc172d9ce7d04304458ab53d81412a667ecdf589ede2b0cbe45baa2b7
7
+ data.tar.gz: 27eff5a31ed8c64fe7c4c48f783e1e77f3766df6267123feef02b07ac8505d061709e72e67942f16ba9d63e9dfe432eb0ba0c77b2f39d2bc6b9b28e182c92523
@@ -29,7 +29,7 @@ module CloudFormationTool
29
29
 
30
30
  def update(url, filepath, params = {})
31
31
  log "Updating existing stack '#{name}' from '#{filepath}' params #{params.inspect}"
32
- check do
32
+ valid_check do
33
33
  resp = awscf.update_stack({
34
34
  stack_name: @name,
35
35
  template_url: url,
@@ -51,7 +51,7 @@ module CloudFormationTool
51
51
  url = upload(make_filename('yaml'), @template, gzip: false)
52
52
  return update(url, template, params) if exist?
53
53
  log "Creating stack '#{name}' from '#{template}' params #{params.inspect}"
54
- check do
54
+ valid_check do
55
55
  resp = awscf.create_stack({
56
56
  stack_name: @name,
57
57
  template_url: url,
@@ -170,16 +170,16 @@ module CloudFormationTool
170
170
  end
171
171
  end
172
172
  end
173
- end
174
-
175
- private
176
-
177
- def check
178
- begin
179
- yield
180
- rescue Aws::CloudFormation::Errors::ValidationError => e
181
- raise CloudFormationTool::Errors::ValidationError, "Stack validation error: #{e.message}"
182
- end
173
+
174
+ private
175
+
176
+ def valid_check
177
+ begin
178
+ yield
179
+ rescue Aws::CloudFormation::Errors::ValidationError => e
180
+ raise CloudFormationTool::Errors::ValidationError, "Stack validation error: #{e.message}"
181
+ end
182
+ end
183
183
  end
184
184
 
185
185
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel