cloudformation-ruby-dsl 1.3.0 → 1.3.1

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: e987c032a782540897be50d23a8338ca6ca49424
4
- data.tar.gz: d78d73a9dca58bcfe5cd33d8d13852d9936cd2bc
3
+ metadata.gz: e433b9435a5dc639cb08174c3c8ede7b21cb3508
4
+ data.tar.gz: 8124f5edfb23b390df0afaf514bd254ac4de67c1
5
5
  SHA512:
6
- metadata.gz: a8abf58aad4c1d6a02819ab3ac49d45b2a8ccd93b9389e488dce7606a94839e04ee6248c38c207992a1f96a07ba08c2ffb38370b8dc8f2cdf6ca032dde7f7840
7
- data.tar.gz: c4ad57d4148f69bf38ecbec45c1114d48a2b3a487f286581fbf2275eec029c5db173b69691228d03e9c3552c9a4ad2af540fa326be84b0e8217d707542163750
6
+ metadata.gz: bf6b0434e5db033f9874a617c5ea3b46e90dd99e3dd929dcec34fdf25fd65e1d689f70d997f5a0adf5f7100452939d835ccf542bd4e42f2076c914afae2bc60b
7
+ data.tar.gz: 16f75abbcc2661c1d7e0dfe8799fedd9760a308f06c51d86ea7bba6df844aae4b9e0cb14b0291ef63de8f5f72906e7e90afb49c661b7020371f98741a8c1d4cf
@@ -44,7 +44,7 @@ end
44
44
  ############################# CloudFormation DSL
45
45
 
46
46
  # Main entry point
47
- def raw_template(options, &block)
47
+ def raw_template(options = {}, &block)
48
48
  TemplateDSL.new(options, &block)
49
49
  end
50
50
 
@@ -62,12 +62,12 @@ class TemplateDSL < JsonObjectDSL
62
62
  :aws_profile
63
63
 
64
64
  def initialize(options)
65
- @parameters = options[:parameters]
66
- @interactive = options[:interactive]
65
+ @parameters = options.fetch(:parameters, {})
66
+ @interactive = options.fetch(:interactive, false)
67
67
  @stack_name = options[:stack_name]
68
- @aws_region = options[:region]
68
+ @aws_region = options.fetch(:region, default_region)
69
69
  @aws_profile = options[:profile]
70
- @nopretty = options[:nopretty]
70
+ @nopretty = options.fetch(:nopretty, false)
71
71
  super()
72
72
  end
73
73
 
@@ -15,7 +15,7 @@
15
15
  module Cfn
16
16
  module Ruby
17
17
  module Dsl
18
- VERSION = "1.3.0"
18
+ VERSION = "1.3.1"
19
19
  end
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-ruby-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Smith