rivet 1.0.3 → 1.0.4
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/rivet/aws_utils.rb +1 -0
- data/lib/rivet/launch_config.rb +6 -2
- data/lib/rivet/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/lib/rivet/aws_utils.rb
CHANGED
data/lib/rivet/launch_config.rb
CHANGED
@@ -38,7 +38,11 @@ module Rivet
|
|
38
38
|
if lc_collection[identity].exists?
|
39
39
|
Rivet::Log.info("Launch configuration #{identity} already exists in AWS")
|
40
40
|
else
|
41
|
-
options = {
|
41
|
+
options = {}
|
42
|
+
options[:key_pair] = key_name unless key_name.nil?
|
43
|
+
options[:security_groups] = security_groups unless security_groups.nil?
|
44
|
+
options[:user_data] = user_data unless user_data.nil?
|
45
|
+
|
42
46
|
Rivet::Log.info("Saving launch configuration #{identity} to AWS")
|
43
47
|
Rivet::Log.debug("Launch Config options:\n #{options.inspect}")
|
44
48
|
lc_collection.create(identity,image_id,instance_type, options)
|
@@ -82,7 +86,7 @@ module Rivet
|
|
82
86
|
end
|
83
87
|
|
84
88
|
def normalize_security_groups(groups)
|
85
|
-
groups.sort
|
89
|
+
groups.nil? ? groups : groups.sort
|
86
90
|
end
|
87
91
|
|
88
92
|
end
|
data/lib/rivet/version.rb
CHANGED