stemcell 0.2.8 → 0.2.9
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/bin/stemcell +6 -0
- data/lib/stemcell/version.rb +1 -1
- data/lib/stemcell.rb +3 -0
- metadata +2 -2
data/bin/stemcell
CHANGED
|
@@ -70,6 +70,11 @@ options = Trollop::options do
|
|
|
70
70
|
:default => ENV['IAM_ROLE'],
|
|
71
71
|
)
|
|
72
72
|
|
|
73
|
+
opt('ebs_optimized',
|
|
74
|
+
'launch an EBS-Optimized instance',
|
|
75
|
+
:type => :flag,
|
|
76
|
+
)
|
|
77
|
+
|
|
73
78
|
opt('chef_data_bag_secret',
|
|
74
79
|
'path to secret file (or the string containing the secret)',
|
|
75
80
|
:type => String,
|
|
@@ -172,4 +177,5 @@ stemcell.launch({
|
|
|
172
177
|
'tags' => options['tags'],
|
|
173
178
|
'count' => options['count'],
|
|
174
179
|
'iam_role' => options['iam_role'],
|
|
180
|
+
'ebs_optimized' => options['ebs_optimized'],
|
|
175
181
|
})
|
data/lib/stemcell/version.rb
CHANGED
data/lib/stemcell.rb
CHANGED
|
@@ -72,6 +72,9 @@ module Stemcell
|
|
|
72
72
|
# specify IAM role (optional)
|
|
73
73
|
launch_options[:iam_instance_profile] = opts['iam_role'] if opts['iam_role']
|
|
74
74
|
|
|
75
|
+
# specify an EBS-optimized instance (optional)
|
|
76
|
+
launch_options[:ebs_optimized] = true if opts['ebs_optimized']
|
|
77
|
+
|
|
75
78
|
# generate user data script to bootstrap instance, include in launch optsions
|
|
76
79
|
launch_options[:user_data] = render_template(opts)
|
|
77
80
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stemcell
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.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: 2013-03-
|
|
12
|
+
date: 2013-03-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: trollop
|