ec2launcher 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -1
- data/lib/ec2launcher/environment.rb +2 -0
- data/lib/ec2launcher/version.rb +1 -1
- data/lib/ec2launcher.rb +7 -1
- metadata +1 -1
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.
|
data/lib/ec2launcher/version.rb
CHANGED
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
|
-
|
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
|
|