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 +4 -4
- data/lib/cloudformation-ruby-dsl/dsl.rb +5 -5
- data/lib/cloudformation-ruby-dsl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e433b9435a5dc639cb08174c3c8ede7b21cb3508
|
4
|
+
data.tar.gz: 8124f5edfb23b390df0afaf514bd254ac4de67c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
66
|
-
@interactive = options
|
65
|
+
@parameters = options.fetch(:parameters, {})
|
66
|
+
@interactive = options.fetch(:interactive, false)
|
67
67
|
@stack_name = options[:stack_name]
|
68
|
-
@aws_region = options
|
68
|
+
@aws_region = options.fetch(:region, default_region)
|
69
69
|
@aws_profile = options[:profile]
|
70
|
-
@nopretty = options
|
70
|
+
@nopretty = options.fetch(:nopretty, false)
|
71
71
|
super()
|
72
72
|
end
|
73
73
|
|