eb_deployer 0.4.4.beta1 → 0.4.4.beta2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGZjMmMyZmZjOTQwMDA3ZGMzNWViZGZmY2I0ZWRlMTlhODFmY2VlYw==
5
+ data.tar.gz: !binary |-
6
+ ZWNmNmQyMWViYWQ4MmZkNGEyZjgyZThkNDAzNDBiYmJlYjRhYzIwMw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZWYxMzg3ZDgxZWIyOTZkZTg2MTlhZjUyMmRmMDExYTRlZDllYmExN2FjNDZl
10
+ YWY5M2FmYjExYTUwMWQ2ZTg4YmI5ZmQ2ZDNmMTVlNWZmODhlZmNhNDU4NzZj
11
+ NmUyZmFjODE4YmI2MzQ4NTQyZjg0ODU5YmE4YTQ1Y2NiNGQ1OWQ=
12
+ data.tar.gz: !binary |-
13
+ YzU2NmQ2MjJjODhiNzk2Y2ZkNDZhZTBhOTU5NDg4OTg3YWFiZjJmMGJjMjcz
14
+ NTFmNjI1N2JlNzljYWU2NjkxNjFkMmJiNzE1YjI0Y2FhN2NhYzk3OWJhMzEz
15
+ MTNlNDVjNDE5YWViMWQ1ZmNkY2E1MjczYTI1MzUzYTk2ODAwMTQ=
@@ -17,7 +17,10 @@ module EbDeployer
17
17
 
18
18
  inactive_ebenv.deploy(version_label, env_settings)
19
19
  active_ebenv.swap_cname_with(inactive_ebenv)
20
- active_ebenv.apply_settings(inactive_settings) unless inactive_settings.empty?
20
+ unless inactive_settings.empty?
21
+ active_ebenv.log("applying inactive settings...")
22
+ active_ebenv.apply_settings(inactive_settings)
23
+ end
21
24
  end
22
25
 
23
26
  private
@@ -1,3 +1,3 @@
1
1
  module EbDeployer
2
- VERSION = "0.4.4.beta1"
2
+ VERSION = "0.4.4.beta2"
3
3
  end
data/lib/eb_deployer.rb CHANGED
@@ -187,7 +187,7 @@ module EbDeployer
187
187
  environment = Environment.new(application, opts[:environment], bs) do |env|
188
188
  env.resource_stacks = resource_stacks
189
189
  env.settings = opts[:option_settings] || opts[:settings] || []
190
- env.inactive_settings = opts[:inactve_settings] || []
190
+ env.inactive_settings = opts[:inactive_settings] || []
191
191
  env.creation_opts = {
192
192
  :solution_stack => opts[:solution_stack_name] || "64bit Amazon Linux 2013.09 running Tomcat 7 Java 7",
193
193
  :cname_prefix => opts[:cname_prefix],
@@ -69,7 +69,7 @@ class BlueGreenDeployTest < DeployTest
69
69
  [{:namespace => 'aws:autoscaling:launchconfiguration',
70
70
  :option_name => 'MinSize',
71
71
  :value => 10}],
72
- :inactve_settings =>
72
+ :inactive_settings =>
73
73
  [{:namespace => 'aws:autoscaling:launchconfiguration',
74
74
  :option_name => 'MinSize',
75
75
  :value => 1}]}
@@ -135,6 +135,45 @@ YAML
135
135
  assert_match(/non_existant/, error.message)
136
136
  end
137
137
 
138
+ def test_set_inactive_settings_at_common_level
139
+ config = @loader.load(generate_input(<<-YAML, :environment => 'production'))
140
+ application: myapp
141
+ common:
142
+ inactive_settings:
143
+ - namespace: aws:autoscaling:asg
144
+ option_name: MinSize
145
+ value: "1"
146
+ environments:
147
+ dev:
148
+ production:
149
+ YAML
150
+ assert_equal([{'namespace' => 'aws:autoscaling:asg',
151
+ 'option_name' => 'MinSize',
152
+ 'value' => '1'}], config[:inactive_settings])
153
+ end
154
+
155
+ def test_set_inactive_settings_at_env_level
156
+ config = @loader.load(generate_input(<<-YAML, :environment => 'dev'))
157
+ application: myapp
158
+ common:
159
+ inactive_settings:
160
+ - namespace: aws:autoscaling:asg
161
+ option_name: MinSize
162
+ value: "1"
163
+ environments:
164
+ dev:
165
+ inactive_settings:
166
+ - namespace: aws:autoscaling:asg
167
+ option_name: MinSize
168
+ value: "0"
169
+ production:
170
+ YAML
171
+ assert_equal([{'namespace' => 'aws:autoscaling:asg',
172
+ 'option_name' => 'MinSize',
173
+ 'value' => '0'}], config[:inactive_settings])
174
+ end
175
+
176
+
138
177
  private
139
178
 
140
179
  def md5_digest(file)
@@ -88,7 +88,7 @@ class MultiComponentsDeployTest < DeployTest
88
88
 
89
89
 
90
90
  def test_can_have_inactive_settings_which_will_be_applied_to_inactive_env
91
- settings = {:inactve_settings =>
91
+ settings = {:inactive_settings =>
92
92
  [{:namespace => 'aws:autoscaling:launchconfiguration',
93
93
  :option_name => 'MinSize',
94
94
  :value => 1}],
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eb_deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4.beta1
5
- prerelease: 6
4
+ version: 0.4.4.beta2
6
5
  platform: ruby
7
6
  authors:
8
7
  - wpc
@@ -15,7 +14,6 @@ dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: aws-sdk
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ! '>='
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ! '>='
29
26
  - !ruby/object:Gem::Version
@@ -88,30 +85,26 @@ files:
88
85
  homepage: https://github.com/ThoughtWorksStudios/eb_deployer
89
86
  licenses:
90
87
  - MIT
88
+ metadata: {}
91
89
  post_install_message:
92
90
  rdoc_options: []
93
91
  require_paths:
94
92
  - lib
95
93
  required_ruby_version: !ruby/object:Gem::Requirement
96
- none: false
97
94
  requirements:
98
95
  - - ! '>='
99
96
  - !ruby/object:Gem::Version
100
97
  version: '0'
101
- segments:
102
- - 0
103
- hash: -3919206102584953586
104
98
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
99
  requirements:
107
100
  - - ! '>'
108
101
  - !ruby/object:Gem::Version
109
102
  version: 1.3.1
110
103
  requirements: []
111
104
  rubyforge_project:
112
- rubygems_version: 1.8.29
105
+ rubygems_version: 2.2.0
113
106
  signing_key:
114
- specification_version: 3
107
+ specification_version: 4
115
108
  summary: Low friction deployments should be a breeze. Elastic Beanstalk provides a
116
109
  great foundation for performing Blue-Green deployments, and EbDeployer add a missing
117
110
  top to automate the whole flow out of the box.