kumo_keisei 3.1.0 → 3.1.1.pre.alpha1

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: 6b8a9bc536d54d051376dafe5523975865487e8f
4
- data.tar.gz: 81b535d59fde019d211e3ae894bc91c727136dca
3
+ metadata.gz: 6df000354f099ca12844b78b3654802e0fed12ee
4
+ data.tar.gz: f9969d6b1c6b2908c7eb64ce92f67a1b84e12578
5
5
  SHA512:
6
- metadata.gz: 18edf9c3759f7661fbaf317540e0a0b9cffa7d94a4ea3f3c2d21094112c14d7416ff59fcdbec25945992a3a0083eb7e8ca134d4db2960dbe487f09bc719e1f86
7
- data.tar.gz: d7feb64166f2dc19ded88bcd84e8889ade2c4b072438bc6b79f04b1f877c5652c0756d1cd47223c894b95c7f2e0750ef7d102bb69af87cced1812f3949f943c0
6
+ metadata.gz: e7ade3dfdd2657eab105971b9839961c25b6baa5b1efea2dccabdbbfabb539f6dc5260ea1b2cb03d7b5d6f191c582a668c47e58e4da5e343ae76d12609ba3bd7
7
+ data.tar.gz: d81212b95224b161f9eb085e2edfa0983ed83ce1f611983438673774f650c69a7d89264be292f74cb6ee9bdff7d3fdf9c3c8687f4b2f7f89fd3e4169a4d65997
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.1-alpha1
@@ -162,7 +162,7 @@ module KumoKeisei
162
162
  end
163
163
 
164
164
  def environment_config(stack_config)
165
- params_template_path = stack_config.has_key?(:template_path) ? File.absolute_path(File.join(File.dirname(stack_config[:template_path]), "#{@app_name}.yml.erb")) : nil
165
+ params_template_path = stack_config.has_key?(:template_path) ? File.absolute_path("#{stack_config[:template_path]}.erb") : nil
166
166
  EnvironmentConfig.new(stack_config.merge(params_template_file_path: params_template_path))
167
167
  end
168
168
 
@@ -89,6 +89,27 @@ describe KumoKeisei::Stack do
89
89
  end
90
90
  end
91
91
 
92
+ context "when looking for the parameter template file" do
93
+ before do
94
+ allow(cloudformation).to receive(:wait_until).with(:stack_update_complete, stack_name: stack_name).and_return(nil)
95
+ allow(cloudformation).to receive(:describe_stacks).with({stack_name: stack_name}).and_return(
96
+ stack_result_list_with_status('CREATE_COMPLETE', stack_name),
97
+ stack_result_list_with_status('UPDATE_COMPLETE', stack_name)
98
+ )
99
+ allow(cloudformation).to receive(:update_stack).with(cf_stack_update_params).and_return("stack_id")
100
+ end
101
+
102
+ EXAMPLE_CFN_STACK_FILENAMES = ['app.json', 'rds.json']
103
+
104
+ EXAMPLE_CFN_STACK_FILENAMES.each do |stack_filename|
105
+ it "uses a file in the form of #{stack_filename}.erb" do
106
+ expect(KumoKeisei::EnvironmentConfig).to receive(:new).with(stack_config.merge(params_template_file_path: "#{stack_filename}.erb")).and_return(double(:environment_config, cf_params: {}))
107
+ expect(File).to receive(:absolute_path).and_return("#{stack_filename}.erb")
108
+ subject.apply!(stack_config)
109
+ end
110
+ end
111
+ end
112
+
92
113
  context "when the stack is updatable" do
93
114
  UPDATEABLE_STATUSES = ['UPDATE_ROLLBACK_COMPLETE', 'CREATE_COMPLETE', 'UPDATE_COMPLETE']
94
115
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumo_keisei
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1.pre.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redbubble
@@ -130,9 +130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ">="
133
+ - - ">"
134
134
  - !ruby/object:Gem::Version
135
- version: '0'
135
+ version: 1.3.1
136
136
  requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 2.2.2