eb_deployer 0.0.9 → 0.0.10
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.
@@ -14,8 +14,8 @@ module EbDeployer
|
|
14
14
|
def provision(resources)
|
15
15
|
template = File.read(resources[:template])
|
16
16
|
transforms = resources[:transforms]
|
17
|
-
capabilities = resources[:capabilities]
|
18
|
-
params = resources[:parameters]
|
17
|
+
capabilities = resources[:capabilities] || []
|
18
|
+
params = resources[:parameters] || {}
|
19
19
|
|
20
20
|
stack_exists? ? update_stack(template, params, capabilities) : create_stack(template, params, capabilities)
|
21
21
|
wait_for_stack_op_terminate
|
data/lib/eb_deployer/version.rb
CHANGED
data/test/deploy_test.rb
CHANGED
@@ -160,6 +160,8 @@ class DeployTest < Minitest::Test
|
|
160
160
|
:template => cf_template
|
161
161
|
})
|
162
162
|
assert @cf_driver.stack_exists?('simple-production')
|
163
|
+
assert_equal({}, @cf_driver.stack_config('simple-production')[:parameters])
|
164
|
+
assert_equal([], @cf_driver.stack_config('simple-production')[:capabilities])
|
163
165
|
end
|
164
166
|
|
165
167
|
def test_provision_resources_with_capacities
|