stemcell 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +5 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +64 -41
- data/README.md +1 -1
- data/Rakefile +7 -0
- data/examples/stemcell.json +2 -1
- data/examples/stemcellrc +0 -4
- data/lib/stemcell/option_parser.rb +3 -3
- data/lib/stemcell/version.rb +1 -1
- data/stemcell.gemspec +1 -1
- metadata +6 -5
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stemcell (0.7.
|
4
|
+
stemcell (0.7.1)
|
5
5
|
aws-creds (~> 0.2.2)
|
6
6
|
aws-sdk (~> 1.9)
|
7
|
-
chef (
|
7
|
+
chef (>= 11.4.0)
|
8
8
|
colored (~> 1.2)
|
9
9
|
json (~> 1.7.7)
|
10
10
|
net-ssh (~> 2.6)
|
@@ -13,83 +13,106 @@ PATH
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
aws-creds (0.2.
|
16
|
+
aws-creds (0.2.3)
|
17
17
|
trollop (~> 2.0)
|
18
|
-
aws-sdk (1.
|
18
|
+
aws-sdk (1.48.1)
|
19
19
|
json (~> 1.4)
|
20
20
|
nokogiri (>= 1.4.4)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
mixlib-
|
29
|
-
mixlib-
|
30
|
-
mixlib-
|
21
|
+
chef (11.12.8)
|
22
|
+
chef-zero (>= 2.0.2, < 2.1)
|
23
|
+
diff-lcs (~> 1.2, >= 1.2.4)
|
24
|
+
erubis (~> 2.7)
|
25
|
+
highline (~> 1.6, >= 1.6.9)
|
26
|
+
json (>= 1.4.4, <= 1.8.1)
|
27
|
+
mime-types (~> 1.16)
|
28
|
+
mixlib-authentication (~> 1.3)
|
29
|
+
mixlib-cli (~> 1.4)
|
30
|
+
mixlib-config (~> 2.0)
|
31
|
+
mixlib-log (~> 1.3)
|
32
|
+
mixlib-shellout (~> 1.4)
|
31
33
|
net-ssh (~> 2.6)
|
32
|
-
net-ssh-multi (~> 1.1
|
33
|
-
ohai (
|
34
|
+
net-ssh-multi (~> 1.1)
|
35
|
+
ohai (~> 7.0.4)
|
36
|
+
pry (~> 0.9)
|
34
37
|
rest-client (>= 1.0.4, < 1.7.0)
|
35
38
|
yajl-ruby (~> 1.1)
|
39
|
+
chef-zero (2.0.2)
|
40
|
+
hashie (~> 2.0)
|
41
|
+
json
|
42
|
+
mixlib-log (~> 1.3)
|
43
|
+
rack
|
44
|
+
coderay (1.1.0)
|
36
45
|
colored (1.2)
|
37
46
|
diff-lcs (1.2.5)
|
38
|
-
docile (1.1.
|
47
|
+
docile (1.1.5)
|
39
48
|
erubis (2.7.0)
|
40
|
-
|
49
|
+
hashie (2.1.2)
|
50
|
+
highline (1.6.21)
|
41
51
|
ipaddress (0.8.0)
|
42
52
|
json (1.7.7)
|
43
|
-
|
44
|
-
|
53
|
+
method_source (0.8.2)
|
54
|
+
mime-types (1.25.1)
|
55
|
+
mini_portile (0.6.0)
|
45
56
|
mixlib-authentication (1.3.0)
|
46
57
|
mixlib-log
|
47
|
-
mixlib-cli (1.
|
58
|
+
mixlib-cli (1.5.0)
|
48
59
|
mixlib-config (2.1.0)
|
49
60
|
mixlib-log (1.6.0)
|
50
|
-
mixlib-shellout (1.
|
51
|
-
multi_json (1.
|
52
|
-
net-ssh (2.
|
61
|
+
mixlib-shellout (1.4.0)
|
62
|
+
multi_json (1.10.1)
|
63
|
+
net-ssh (2.9.1)
|
53
64
|
net-ssh-gateway (1.2.0)
|
54
65
|
net-ssh (>= 2.6.5)
|
55
|
-
net-ssh-multi (1.
|
56
|
-
net-ssh (>= 2.
|
57
|
-
net-ssh-gateway (>=
|
58
|
-
nokogiri (1.6.1)
|
59
|
-
mini_portile (
|
60
|
-
ohai (
|
66
|
+
net-ssh-multi (1.2.0)
|
67
|
+
net-ssh (>= 2.6.5)
|
68
|
+
net-ssh-gateway (>= 1.2.0)
|
69
|
+
nokogiri (1.6.2.1)
|
70
|
+
mini_portile (= 0.6.0)
|
71
|
+
ohai (7.0.4)
|
61
72
|
ipaddress
|
73
|
+
mime-types (~> 1.16)
|
62
74
|
mixlib-cli
|
63
|
-
mixlib-config
|
75
|
+
mixlib-config (~> 2.0)
|
64
76
|
mixlib-log
|
65
|
-
mixlib-shellout
|
77
|
+
mixlib-shellout (~> 1.2)
|
66
78
|
systemu (~> 2.5.2)
|
67
79
|
yajl-ruby
|
68
|
-
|
69
|
-
|
80
|
+
pry (0.10.0)
|
81
|
+
coderay (~> 1.1.0)
|
82
|
+
method_source (~> 0.8.1)
|
83
|
+
slop (~> 3.4)
|
84
|
+
rack (1.5.2)
|
85
|
+
rake (10.3.2)
|
86
|
+
rdoc (4.1.1)
|
87
|
+
json (~> 1.4)
|
88
|
+
rest-client (1.6.8)
|
89
|
+
mime-types (~> 1.16)
|
90
|
+
rdoc (>= 2.4.2)
|
70
91
|
rspec (2.14.1)
|
71
92
|
rspec-core (~> 2.14.0)
|
72
93
|
rspec-expectations (~> 2.14.0)
|
73
94
|
rspec-mocks (~> 2.14.0)
|
74
|
-
rspec-core (2.14.
|
75
|
-
rspec-expectations (2.14.
|
95
|
+
rspec-core (2.14.8)
|
96
|
+
rspec-expectations (2.14.5)
|
76
97
|
diff-lcs (>= 1.1.3, < 2.0)
|
77
|
-
rspec-instafail (0.2.
|
78
|
-
|
79
|
-
|
98
|
+
rspec-instafail (0.2.5)
|
99
|
+
rspec
|
100
|
+
rspec-mocks (2.14.6)
|
101
|
+
simplecov (0.9.0)
|
80
102
|
docile (~> 1.1.0)
|
81
103
|
multi_json
|
82
104
|
simplecov-html (~> 0.8.0)
|
83
105
|
simplecov-html (0.8.0)
|
106
|
+
slop (3.6.0)
|
84
107
|
systemu (2.5.2)
|
85
108
|
trollop (2.0)
|
86
|
-
|
87
|
-
yajl-ruby (1.2.0)
|
109
|
+
yajl-ruby (1.2.1)
|
88
110
|
|
89
111
|
PLATFORMS
|
90
112
|
ruby
|
91
113
|
|
92
114
|
DEPENDENCIES
|
115
|
+
rake (~> 10.3.2)
|
93
116
|
rspec (~> 2.14.1)
|
94
117
|
rspec-instafail (~> 0.2.4)
|
95
118
|
simplecov
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Stemcell
|
1
|
+
# Stemcell [![Build Status](https://travis-ci.org/airbnb/stemcell.svg?branch=master)](https://travis-ci.org/airbnb/stemcell)
|
2
2
|
|
3
3
|
Stemcell launches instances in EC2.
|
4
4
|
These instances are created to your specification, with knobs like AMI, instance type, and region exposed.
|
data/Rakefile
CHANGED
data/examples/stemcell.json
CHANGED
data/examples/stemcellrc
CHANGED
@@ -20,10 +20,6 @@ CHEF_ENVIRONMENT=default
|
|
20
20
|
# modeled here: https://github.com/opscode/chef-repo
|
21
21
|
export LOCAL_CHEF_ROOT=/path/to/your/local/chef/repository
|
22
22
|
|
23
|
-
# The git origin is the publically-accessible version of the
|
24
|
-
# local chef root
|
25
|
-
export GIT_ORIGIN=git@github.com:airbnb/chef.git
|
26
|
-
|
27
23
|
# The git branch to use by default
|
28
24
|
export GIT_BRANCH=production
|
29
25
|
|
@@ -297,15 +297,15 @@ module Stemcell
|
|
297
297
|
|
298
298
|
# a bit ugly but short and won't change
|
299
299
|
# notice the to_i on volume_size parameter
|
300
|
-
mapping[:ebs][:snapshot_id] = devparam[0] unless devparam[0].
|
300
|
+
mapping[:ebs][:snapshot_id] = devparam[0] unless (devparam[0].nil? || devparam[0].empty?)
|
301
301
|
mapping[:ebs][:volume_size] = devparam[1].to_i
|
302
302
|
|
303
303
|
# defaults to true - except if we have the exact string "false"
|
304
304
|
mapping[:ebs][:delete_on_termination] = (devparam[2] != "false")
|
305
305
|
|
306
306
|
# optional. notice the to_i on iops parameter
|
307
|
-
mapping[:ebs][:volume_type] = devparam[3] unless devparam[3].
|
308
|
-
mapping[:ebs][:iops] = devparam[4].to_i
|
307
|
+
mapping[:ebs][:volume_type] = devparam[3] unless (devparam[3].nil? || devparam[3].empty?)
|
308
|
+
mapping[:ebs][:iops] = devparam[4].to_i unless (devparam[4].nil? || devparam[4].empty?)
|
309
309
|
|
310
310
|
end
|
311
311
|
end
|
data/lib/stemcell/version.rb
CHANGED
data/stemcell.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.add_runtime_dependency 'aws-sdk', '~> 1.9'
|
20
20
|
s.add_runtime_dependency 'net-ssh', '~> 2.6'
|
21
|
-
s.add_runtime_dependency 'chef',
|
21
|
+
s.add_runtime_dependency 'chef', '>= 11.4.0'
|
22
22
|
|
23
23
|
s.add_runtime_dependency 'trollop', '~> 2.0'
|
24
24
|
s.add_runtime_dependency 'aws-creds', '~> 0.2.2'
|
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.7.
|
4
|
+
version: 0.7.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-07-18 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: aws-sdk
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - ! '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 11.4.0
|
57
57
|
type: :runtime
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
none: false
|
61
61
|
requirements:
|
62
|
-
- -
|
62
|
+
- - ! '>='
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: 11.4.0
|
65
65
|
- !ruby/object:Gem::Dependency
|
@@ -137,6 +137,7 @@ extensions: []
|
|
137
137
|
extra_rdoc_files: []
|
138
138
|
files:
|
139
139
|
- .gitignore
|
140
|
+
- .travis.yml
|
140
141
|
- Gemfile
|
141
142
|
- Gemfile.lock
|
142
143
|
- LICENSE.txt
|
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
206
|
version: '0'
|
206
207
|
requirements: []
|
207
208
|
rubyforge_project:
|
208
|
-
rubygems_version: 1.8.23
|
209
|
+
rubygems_version: 1.8.23.2
|
209
210
|
signing_key:
|
210
211
|
specification_version: 3
|
211
212
|
summary: no summary
|