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 +4 -0
- data/lib/ec2launcher/dsl/application.rb +1 -1
- data/lib/ec2launcher/version.rb +1 -1
- data/lib/ec2launcher.rb +14 -0
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -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[
|
272
|
+
groups ||= @security_groups[:default]
|
273
273
|
groups ||= []
|
274
274
|
groups
|
275
275
|
end
|
data/lib/ec2launcher/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2012-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|