ec2launcher 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/bin/ec2launcher +1 -1
- data/lib/ec2launcher/terminator.rb +5 -5
- data/lib/ec2launcher/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/bin/ec2launcher
CHANGED
@@ -27,7 +27,7 @@ if opt_parser.command == "init"
|
|
27
27
|
|
28
28
|
puts "Successfully created #{opt_parser.location}"
|
29
29
|
elsif opt_parser.command =~ /^term/
|
30
|
-
terminator = EC2Launcher::Terminator.new
|
30
|
+
terminator = EC2Launcher::Terminator.new(opt_parser.options.directory, opt_parser.options.environ)
|
31
31
|
terminator.terminate(opt_parser.hostname, opt_parser.options.access_key, opt_parser.options.secret_key)
|
32
32
|
elsif opt_parser.command == "launch"
|
33
33
|
launcher = EC2Launcher::Launcher.new
|
@@ -14,7 +14,7 @@ module EC2Launcher
|
|
14
14
|
include AWSInitializer
|
15
15
|
include BackoffRunner
|
16
16
|
|
17
|
-
def initialize()
|
17
|
+
def initialize(config_directory, environment_name)
|
18
18
|
@log = Logger.new 'ec2launcher'
|
19
19
|
log_output = Outputter.stdout
|
20
20
|
log_output.formatter = PatternFormatter.new :pattern => "%m"
|
@@ -23,7 +23,7 @@ module EC2Launcher
|
|
23
23
|
##############################
|
24
24
|
# Load configuration data
|
25
25
|
##############################
|
26
|
-
config_wrapper = ConfigWrapper.new(
|
26
|
+
config_wrapper = ConfigWrapper.new(config_directory)
|
27
27
|
|
28
28
|
@config = config_wrapper.config
|
29
29
|
@environments = config_wrapper.environments
|
@@ -31,11 +31,11 @@ module EC2Launcher
|
|
31
31
|
##############################
|
32
32
|
# ENVIRONMENT
|
33
33
|
##############################
|
34
|
-
unless @environments.has_key?
|
35
|
-
@log.fatal "Environment not found: #{
|
34
|
+
unless @environments.has_key? environment_name
|
35
|
+
@log.fatal "Environment not found: #{environment_name}"
|
36
36
|
exit 2
|
37
37
|
end
|
38
|
-
@environment = @environments[
|
38
|
+
@environment = @environments[environment_name]
|
39
39
|
end
|
40
40
|
|
41
41
|
# Terminates a given server instance.
|
data/lib/ec2launcher/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.9
|
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-10-
|
12
|
+
date: 2012-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|