ec2launcher 1.0.6 → 1.0.7

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 CHANGED
@@ -1,7 +1,11 @@
1
+ ## 1.0.7 (18-July-2012)
2
+
3
+ * Fixed problem with inheriting from default environment.
4
+
1
5
  ## 1.0.6 (18-July-2012)
2
6
 
3
7
  * Update environment inheritence to merge (instead of replace) gems, packages, roles, commands and security groups.
4
8
 
5
9
  ## 1.0.5 (18-July-2012)
6
10
 
7
- * Fixed bug with resolving environment names when using an environment alias.
11
+ * Fixed bug with resolving environment names when using an environment alias.
@@ -18,6 +18,8 @@ module EC2Launcher
18
18
  @packages = []
19
19
  @precommands = []
20
20
  @postcommands = []
21
+ @roles = []
22
+ @security_groups = []
21
23
  end
22
24
 
23
25
  def environment(name)
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2012 Sean Laurent
3
3
  #
4
4
  module Ec2launcher
5
- VERSION = "1.0.6"
5
+ VERSION = "1.0.7"
6
6
  end
data/lib/ec2launcher.rb CHANGED
@@ -173,6 +173,8 @@ module EC2Launcher
173
173
  # SECURITY GROUPS
174
174
  ##############################
175
175
  security_groups = []
176
+ puts "ENV: #{@environment.security_groups}"
177
+ puts "APP: #{@application.security_groups_for_environment(@environment.name)}"
176
178
  security_groups += @environment.security_groups unless @environment.security_groups.nil?
177
179
  security_groups += @application.security_groups_for_environment(@environment.name)
178
180
 
@@ -687,7 +689,11 @@ rm -f /tmp/runurl"
687
689
  new_env = Marshal::load(Marshal.dump(default_environment)) unless default_environment.nil?
688
690
  new_env ||= EC2Launcher::Environment.new
689
691
 
690
- new_env.load(File.read(name))
692
+ load_env = EC2Launcher::Environment.new
693
+ load_env.load(File.read(name))
694
+
695
+ new_env.merge(load_env)
696
+
691
697
  new_env
692
698
  end
693
699
 
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.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: