ec2launcher 1.0.5 → 1.0.6

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.
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ ## 1.0.6 (18-July-2012)
2
+
3
+ * Update environment inheritence to merge (instead of replace) gems, packages, roles, commands and security groups.
4
+
5
+ ## 1.0.5 (18-July-2012)
6
+
7
+ * Fixed bug with resolving environment names when using an environment alias.
@@ -190,6 +190,13 @@ module EC2Launcher
190
190
  def merge(other_env)
191
191
  @name =other_env.name
192
192
 
193
+ @gems += other_env.gems unless other_env.gems.nil?
194
+ @packages += other_env.packages unless other_env.packages.nil?
195
+ @roles += other_env.roles unless other_env.roles.nil?
196
+ @precommands += other_env.precommands unless other_env.precommands.nil?
197
+ @postcommands += other_env.postcommands unless other_env.postcommands.nil?
198
+ @security_groups += other_env.security_groups unless other_env.security_groups.nil?
199
+
193
200
  @aliases = other_env.aliases.nil? ? nil : other_env.aliases
194
201
 
195
202
  @aws_keyfile = other_env.aws_keyfile unless other_env.aws_keyfile.nil?
@@ -198,13 +205,7 @@ module EC2Launcher
198
205
  @chef_validation_pem_url = other_env.chef_validation_pem_url unless other_env.chef_validation_pem_url.nil?
199
206
  @domain_name = other_env.domain_name unless other_env.domain_name
200
207
  @email_notifications = other_env.email_notifications unless other_env.email_notifications.nil?
201
- @gems = other_env.gems unless other_env.gems.nil?
202
208
  @key_name = other_env.key_name unless other_env.key_name.nil?
203
- @packages = other_env.packages unless other_env.packages.nil?
204
- @precommands = other_env.precommands unless other_env.precommands.nil?
205
- @postcommands = other_env.postcommands unless other_env.postcommands.nil?
206
- @roles = other_env.roles unless other_env.roles.nil?
207
- @security_groups = other_env.security_groups unless other_env.security_groups.nil?
208
209
  @subnet = other_env.subnet unless other_env.subnet.nil?
209
210
  end
210
211
 
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2012 Sean Laurent
3
3
  #
4
4
  module Ec2launcher
5
- VERSION = "1.0.5"
5
+ VERSION = "1.0.6"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,6 +36,7 @@ extensions: []
36
36
  extra_rdoc_files: []
37
37
  files:
38
38
  - .gitignore
39
+ - CHANGELOG.md
39
40
  - Gemfile
40
41
  - LICENSE
41
42
  - README.md