ec2launcher 1.0.13 → 1.0.14

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.14
2
+
3
+ * Added "default" environment for use with security groups.
4
+
1
5
  ## 1.0.13
2
6
 
3
7
  * Fix use of security groups when launching an instance into the public cloud with a security group that is defined with the same name in both the public cloud and a VPC.
@@ -269,7 +269,7 @@ module EC2Launcher
269
269
  # requested environment and "default" environment are undefined.
270
270
  def security_groups_for_environment(environment)
271
271
  groups = @security_groups[environment]
272
- groups ||= @security_groups["default"]
272
+ groups ||= @security_groups[:default]
273
273
  groups ||= []
274
274
  groups
275
275
  end
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2012 Sean Laurent
3
3
  #
4
4
  module EC2Launcher
5
- VERSION = "1.0.13"
5
+ VERSION = "1.0.14"
6
6
  end
data/lib/ec2launcher.rb CHANGED
@@ -175,10 +175,17 @@ module EC2Launcher
175
175
 
176
176
  # Convert security group names to security group ids
177
177
  security_group_ids = []
178
+ missing_security_groups = []
178
179
  security_groups.each do |sg_name|
180
+ missing_security_groups << sg_name unless sg_map.has_key?(sg_name)
179
181
  security_group_ids << sg_map[sg_name].security_group_id
180
182
  end
181
183
 
184
+ if missing_security_groups.length > 0
185
+ puts "ERROR: Missing security groups: #{missing_security_groups.join(', ')}"
186
+ exit 3
187
+ end
188
+
182
189
  ##############################
183
190
  # INSTANCE TYPE
184
191
  ##############################
@@ -345,6 +352,13 @@ module EC2Launcher
345
352
  puts "Launched #{fqdn_names[i]} (#{instance.id}) [#{public_dns_name} / #{private_dns_name} / #{instance.private_ip_address} ]"
346
353
  end
347
354
 
355
+ puts "********************"
356
+ fqdn_names.each_index do |i|
357
+ public_dns_name = instances[i].public_dns_name.nil? ? "no public dns" : instances[i].public_dns_name
358
+ private_dns_name = instances[i].private_dns_name.nil? ? "no private dns" : instances[i].private_dns_name
359
+ puts "Launched #{fqdn_names[i]} (#{instances[i].id}) [#{public_dns_name} / #{private_dns_name} / #{instances[i].private_ip_address} ]"
360
+ end
361
+
348
362
  ##############################
349
363
  # ELB
350
364
  ##############################
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.13
4
+ version: 1.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-26 00:00:00.000000000 Z
12
+ date: 2012-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk