ec2launcher 1.0.20 → 1.0.21

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,3 +1,7 @@
1
+ ## 1.0.21
2
+
3
+ * Fixed bugs with merging applications together under certain circumstances.
4
+
1
5
  ## 1.0.20
2
6
 
3
7
  * New command line option to show user-data.
@@ -204,11 +204,25 @@ module EC2Launcher
204
204
  @ami_name = other_server.ami_name unless other_server.ami_name.nil?
205
205
  @availability_zone = other_server.availability_zone unless other_server.availability_zone.nil?
206
206
  @basename = other_server.basename unless other_server.basename.nil?
207
- other_server.block_devices.each {|bd| @block_devices << bd } unless other_server.block_devices.nil?
208
- other_server.elb.keys.each {|env_name| @elb[env_name] = other_server.elb[env_name] } unless other_server.elb.nil?
207
+
208
+ unless other_server.block_devices.nil?
209
+ @block_devices = []
210
+ other_server.block_devices.each {|bd| @block_devices << bd }
211
+ end
212
+
213
+ unless other_server.elb.nil?
214
+ @elb = {}
215
+ other_server.elb.keys.each {|env_name| @elb[env_name] = other_server.elb[env_name] }
216
+ end
217
+
209
218
  @instance_type = other_server.instance_type unless other_server.instance_type.nil?
210
219
  @name_suffix = other_server.name_suffix unless other_server.name_suffix.nil?
211
- other_server.roles.each {|role| @roles << role } unless other_server.roles.nil?
220
+
221
+ unless other_server.roles.nil?
222
+ @roles = []
223
+ other_server.roles.each {|role| @roles << role }
224
+ end
225
+
212
226
  unless other_server.security_groups.nil?
213
227
  other_server.security_groups.keys.each do |env_name|
214
228
  unless @security_groups.has_key? env_name
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2012 Sean Laurent
3
3
  #
4
4
  module EC2Launcher
5
- VERSION = "1.0.20"
5
+ VERSION = "1.0.21"
6
6
  end
@@ -272,7 +272,7 @@ build_block_devices(ephemeral_drive_count, "xvdf") do |device_name, index|
272
272
  format_filesystem(system_arch, "/dev/#{device_name}1")
273
273
 
274
274
  mount_point = case index
275
- when 1 then "/mnt"
275
+ when 0 then "/mnt"
276
276
  else "/mnt/extra#{index - 1}"
277
277
  end
278
278
  mount_device("/dev/#{device_name}1", mount_point, "root", "root", default_fs_type)
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.20
4
+ version: 1.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: