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 ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.1.2
5
+ - ruby-head
data/Gemfile CHANGED
@@ -7,4 +7,5 @@ group :test do
7
7
  gem 'rspec', '~> 2.14.1'
8
8
  gem 'rspec-instafail', '~> 0.2.4'
9
9
  gem 'simplecov', :require => false
10
+ gem 'rake', '~> 10.3.2'
10
11
  end
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stemcell (0.7.0)
4
+ stemcell (0.7.1)
5
5
  aws-creds (~> 0.2.2)
6
6
  aws-sdk (~> 1.9)
7
- chef (~> 11.4.0)
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.2)
16
+ aws-creds (0.2.3)
17
17
  trollop (~> 2.0)
18
- aws-sdk (1.31.3)
18
+ aws-sdk (1.48.1)
19
19
  json (~> 1.4)
20
20
  nokogiri (>= 1.4.4)
21
- uuidtools (~> 2.1)
22
- chef (11.4.4)
23
- erubis
24
- highline (>= 1.6.9)
25
- json (>= 1.4.4, <= 1.7.7)
26
- mixlib-authentication (>= 1.3.0)
27
- mixlib-cli (~> 1.3.0)
28
- mixlib-config (>= 1.1.2)
29
- mixlib-log (>= 1.3.0)
30
- mixlib-shellout
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.0)
33
- ohai (>= 0.6.0)
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.1)
47
+ docile (1.1.5)
39
48
  erubis (2.7.0)
40
- highline (1.6.20)
49
+ hashie (2.1.2)
50
+ highline (1.6.21)
41
51
  ipaddress (0.8.0)
42
52
  json (1.7.7)
43
- mime-types (2.0)
44
- mini_portile (0.5.2)
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.3.0)
58
+ mixlib-cli (1.5.0)
48
59
  mixlib-config (2.1.0)
49
60
  mixlib-log (1.6.0)
50
- mixlib-shellout (1.3.0)
51
- multi_json (1.8.3)
52
- net-ssh (2.7.0)
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.1)
56
- net-ssh (>= 2.1.4)
57
- net-ssh-gateway (>= 0.99.0)
58
- nokogiri (1.6.1)
59
- mini_portile (~> 0.5.0)
60
- ohai (6.20.0)
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
- rest-client (1.6.7)
69
- mime-types (>= 1.16)
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.7)
75
- rspec-expectations (2.14.4)
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.4)
78
- rspec-mocks (2.14.4)
79
- simplecov (0.8.2)
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
- uuidtools (2.1.4)
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
@@ -1 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+ task :default => :spec
4
+
5
+ RSpec::Core::RakeTask.new(:spec) do |spec|
6
+ spec.pattern = 'spec/**/*_spec.rb'
7
+ spec.rspec_opts = ['-cfs --backtrace']
8
+ end
@@ -3,7 +3,8 @@
3
3
  "region":"us-east-1",
4
4
  "security_groups": ["default"],
5
5
  "instance_type": "m1.small",
6
- "backing_store": "instance_store"
6
+ "backing_store": "instance_store",
7
+ "git_origin": "git@github.com:YOUR_CHEF_REPO.git"
7
8
  },
8
9
 
9
10
  "backing_store": {
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].blank?
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].blank?
308
- mapping[:ebs][:iops] = devparam[4].to_i if (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
@@ -1,3 +1,3 @@
1
1
  module Stemcell
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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', '~> 11.4.0'
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.0
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-01-31 00:00:00.000000000 Z
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