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
@@ -1,3 +1,3 @@
1
1
  module EbDeployer
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eb_deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: