cloudformation_wrapper 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 364dd3b46dd26651d355c996fd94f9966e229895bbb579bd8c0f486546f13e56
|
|
4
|
+
data.tar.gz: ef9f5ea35e85831522460a043cfb7c27b76fd10c7387c874050f1add030e69fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bacd698ac701966ad5fc31a6593652e846e519ab639c4a7cf5b13e996cf2a0efede3202bf1b9e836d34a37923cd34e86b0aafe39cc0e82322d78c5aa3a2018f
|
|
7
|
+
data.tar.gz: 84291fb826e32e3002fb014f9fe649438164db14e03c78aae5cef5271a9baac101fcd01d8563c1016449226fe4ae26129d0f745cfe56bea16799fd58c3a0b755
|
|
@@ -19,11 +19,7 @@ module CloudFormationWrapper
|
|
|
19
19
|
|
|
20
20
|
verified_options = verify_options(options)
|
|
21
21
|
|
|
22
|
-
cf_client =
|
|
23
|
-
Aws::CloudFormation::Client.new(credentials: credentials, region: region)
|
|
24
|
-
else
|
|
25
|
-
verified_options[:client]
|
|
26
|
-
end
|
|
22
|
+
cf_client = verified_options[:client] || Aws::CloudFormation::Client.new(credentials: credentials, region: region)
|
|
27
23
|
|
|
28
24
|
ensure_template_file_exists(verified_options[:template_path], cf_client)
|
|
29
25
|
|
|
@@ -51,7 +47,7 @@ module CloudFormationWrapper
|
|
|
51
47
|
raise ArgumentError, 'parameters must be provided (Hash)'
|
|
52
48
|
end
|
|
53
49
|
|
|
54
|
-
return if options_with_defaults[:name] && (options_with_defaults[:name].is_a? String)
|
|
50
|
+
return options_with_defaults if options_with_defaults[:name] && (options_with_defaults[:name].is_a? String)
|
|
55
51
|
raise ArgumentError, 'name must be provided (String)'
|
|
56
52
|
end
|
|
57
53
|
|