stemcell 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
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
  })
@@ -1,3 +1,3 @@
1
1
  module Stemcell
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
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.8
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 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop