vagrant-chef-zero 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/.travis.yml +1 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile +10 -5
- data/Gemfile.lock +258 -0
- data/README.md +6 -3
- data/Vagrantfile +2 -2
- data/lib/vagrant-chef-zero/action/upload.rb +7 -1
- data/lib/vagrant-chef-zero/version.rb +1 -1
- data/spec/lib/action/upload_spec.rb +56 -5
- data/spec/vagrant-chef-zero/fixtures/cookbooks/blah/metadata.rb +1 -0
- data/spec/vagrant-chef-zero/fixtures/cookbooks/blork/metadata.rb +1 -0
- data/vagrant-chef-zero.gemspec +1 -8
- metadata +26 -79
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45cde9f7c0293750b98e4631ebd925c2a6d84ddc
|
4
|
+
data.tar.gz: 691e313b7ca8f08848a2f5ac61bd19f5be70786b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd7fc1d993303d814eadc468aed5c1f2cb36ba1b363bb295d1fc51ac76ce018b832ba1a15c2cffd785fd3e20d62999d3bea72fc5c8da17cd9dfd77da339e2f2b
|
7
|
+
data.tar.gz: 0b51a18ba843b2c86dd879a19e1b6bd5d4ccb3faaea9c0fe0403a77dddca253736fab47c902bf01d41ff55e60b94d6d9069f566a94a2088893c46b1632e03604
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -6,12 +6,17 @@ group :development do
|
|
6
6
|
# We depend on Vagrant for development, but we don't add it as a
|
7
7
|
# gem dependency because we expect to be installed within the
|
8
8
|
# Vagrant environment itself using `vagrant plugin`.
|
9
|
-
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.
|
10
|
-
|
11
|
-
gem "
|
9
|
+
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.6.2"
|
10
|
+
|
11
|
+
gem "mocha"
|
12
|
+
gem "simplecov"
|
13
|
+
gem "rake"
|
14
|
+
gem "rspec"
|
15
|
+
|
12
16
|
end
|
13
17
|
|
14
|
-
# Force Vagrant to load our plugin during development
|
18
|
+
# Force Vagrant to load our plugin during development (assume we are running from top level)
|
15
19
|
group :plugins do
|
16
|
-
|
20
|
+
gem "vagrant-berkshelf", ">= 2.0.1"
|
21
|
+
gem "vagrant-chef-zero", :path => Dir.pwd
|
17
22
|
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,258 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/mitchellh/vagrant.git
|
3
|
+
revision: 970ed5068ede4f6aae4b51e2cabe872aa924cacf
|
4
|
+
tag: v1.6.2
|
5
|
+
specs:
|
6
|
+
vagrant (1.6.2)
|
7
|
+
bundler (>= 1.5.2, < 1.7.0)
|
8
|
+
childprocess (~> 0.5.0)
|
9
|
+
erubis (~> 2.7.0)
|
10
|
+
i18n (~> 0.6.0)
|
11
|
+
listen (~> 2.7.1)
|
12
|
+
log4r (~> 1.1.9, < 1.1.11)
|
13
|
+
net-scp (~> 1.1.0)
|
14
|
+
net-ssh (>= 2.6.6, < 2.10.0)
|
15
|
+
rb-kqueue (~> 0.2.0)
|
16
|
+
wdm (~> 0.1.0)
|
17
|
+
winrm (~> 1.1.3)
|
18
|
+
|
19
|
+
PATH
|
20
|
+
remote: .
|
21
|
+
specs:
|
22
|
+
vagrant-chef-zero (0.7.1)
|
23
|
+
chef (~> 11.0)
|
24
|
+
chef-zero (~> 2.0)
|
25
|
+
ridley (>= 1.0.0)
|
26
|
+
|
27
|
+
GEM
|
28
|
+
remote: https://rubygems.org/
|
29
|
+
specs:
|
30
|
+
addressable (2.3.6)
|
31
|
+
akami (1.2.2)
|
32
|
+
gyoku (>= 0.4.0)
|
33
|
+
nokogiri
|
34
|
+
berkshelf (3.1.2)
|
35
|
+
addressable (~> 2.3.4)
|
36
|
+
berkshelf-api-client (~> 1.2)
|
37
|
+
buff-config (~> 0.4)
|
38
|
+
buff-extensions (~> 0.4)
|
39
|
+
buff-shell_out (~> 0.1)
|
40
|
+
celluloid (~> 0.16.0.pre)
|
41
|
+
celluloid-io (~> 0.16.0.pre)
|
42
|
+
faraday (~> 0.9.0)
|
43
|
+
minitar (~> 0.5.4)
|
44
|
+
octokit (~> 3.0)
|
45
|
+
retryable (~> 1.3.3)
|
46
|
+
ridley (~> 3.1)
|
47
|
+
solve (~> 1.1)
|
48
|
+
thor (~> 0.18)
|
49
|
+
berkshelf-api-client (1.2.0)
|
50
|
+
faraday (~> 0.9.0)
|
51
|
+
buff-config (0.4.0)
|
52
|
+
buff-extensions (~> 0.3)
|
53
|
+
varia_model (~> 0.1)
|
54
|
+
buff-extensions (0.5.0)
|
55
|
+
buff-ignore (1.1.1)
|
56
|
+
buff-ruby_engine (0.1.0)
|
57
|
+
buff-shell_out (0.1.1)
|
58
|
+
buff-ruby_engine (~> 0.1.0)
|
59
|
+
builder (3.2.2)
|
60
|
+
celluloid (0.16.0.pre)
|
61
|
+
timers (~> 2.0.0)
|
62
|
+
celluloid-io (0.16.0.pre)
|
63
|
+
celluloid (>= 0.16.0.pre)
|
64
|
+
nio4r (>= 1.0.0)
|
65
|
+
chef (11.12.4)
|
66
|
+
chef-zero (~> 2.0, >= 2.0.2)
|
67
|
+
diff-lcs (~> 1.2, >= 1.2.4)
|
68
|
+
erubis (~> 2.7)
|
69
|
+
highline (~> 1.6, >= 1.6.9)
|
70
|
+
json (>= 1.4.4, <= 1.8.1)
|
71
|
+
mime-types (~> 1.16)
|
72
|
+
mixlib-authentication (~> 1.3)
|
73
|
+
mixlib-cli (~> 1.4)
|
74
|
+
mixlib-config (~> 2.0)
|
75
|
+
mixlib-log (~> 1.3)
|
76
|
+
mixlib-shellout (~> 1.4)
|
77
|
+
net-ssh (~> 2.6)
|
78
|
+
net-ssh-multi (~> 1.1)
|
79
|
+
ohai (~> 7.0.4)
|
80
|
+
pry (~> 0.9)
|
81
|
+
rest-client (>= 1.0.4, < 1.7.0)
|
82
|
+
yajl-ruby (~> 1.1)
|
83
|
+
chef-zero (2.1.4)
|
84
|
+
hashie (~> 2.0)
|
85
|
+
json
|
86
|
+
mixlib-log (~> 1.3)
|
87
|
+
rack
|
88
|
+
childprocess (0.5.3)
|
89
|
+
ffi (~> 1.0, >= 1.0.11)
|
90
|
+
coderay (1.1.0)
|
91
|
+
dep-selector-libgecode (1.0.1)
|
92
|
+
dep_selector (1.0.3)
|
93
|
+
dep-selector-libgecode (~> 1.0)
|
94
|
+
ffi (~> 1.9)
|
95
|
+
diff-lcs (1.2.5)
|
96
|
+
docile (1.1.3)
|
97
|
+
erubis (2.7.0)
|
98
|
+
faraday (0.9.0)
|
99
|
+
multipart-post (>= 1.2, < 3)
|
100
|
+
ffi (1.9.3)
|
101
|
+
gssapi (1.0.3)
|
102
|
+
ffi (>= 1.0.1)
|
103
|
+
gyoku (1.1.1)
|
104
|
+
builder (>= 2.1.2)
|
105
|
+
hashie (2.1.1)
|
106
|
+
highline (1.6.21)
|
107
|
+
hitimes (1.2.1)
|
108
|
+
httpclient (2.3.4.1)
|
109
|
+
httpi (0.9.7)
|
110
|
+
rack
|
111
|
+
i18n (0.6.9)
|
112
|
+
ipaddress (0.8.0)
|
113
|
+
json (1.8.1)
|
114
|
+
listen (2.7.5)
|
115
|
+
celluloid (>= 0.15.2)
|
116
|
+
rb-fsevent (>= 0.9.3)
|
117
|
+
rb-inotify (>= 0.9)
|
118
|
+
little-plugger (1.1.3)
|
119
|
+
log4r (1.1.10)
|
120
|
+
logging (1.8.2)
|
121
|
+
little-plugger (>= 1.1.3)
|
122
|
+
multi_json (>= 1.8.4)
|
123
|
+
metaclass (0.0.4)
|
124
|
+
method_source (0.8.2)
|
125
|
+
mime-types (1.25.1)
|
126
|
+
mini_portile (0.6.0)
|
127
|
+
minitar (0.5.4)
|
128
|
+
mixlib-authentication (1.3.0)
|
129
|
+
mixlib-log
|
130
|
+
mixlib-cli (1.5.0)
|
131
|
+
mixlib-config (2.1.0)
|
132
|
+
mixlib-log (1.6.0)
|
133
|
+
mixlib-shellout (1.4.0)
|
134
|
+
mocha (1.1.0)
|
135
|
+
metaclass (~> 0.0.1)
|
136
|
+
multi_json (1.10.1)
|
137
|
+
multipart-post (2.0.0)
|
138
|
+
net-http-persistent (2.9.4)
|
139
|
+
net-scp (1.1.2)
|
140
|
+
net-ssh (>= 2.6.5)
|
141
|
+
net-ssh (2.9.1)
|
142
|
+
net-ssh-gateway (1.2.0)
|
143
|
+
net-ssh (>= 2.6.5)
|
144
|
+
net-ssh-multi (1.2.0)
|
145
|
+
net-ssh (>= 2.6.5)
|
146
|
+
net-ssh-gateway (>= 1.2.0)
|
147
|
+
nio4r (1.0.0)
|
148
|
+
nokogiri (1.6.2.1)
|
149
|
+
mini_portile (= 0.6.0)
|
150
|
+
nori (1.1.5)
|
151
|
+
octokit (3.1.0)
|
152
|
+
sawyer (~> 0.5.3)
|
153
|
+
ohai (7.0.4)
|
154
|
+
ipaddress
|
155
|
+
mime-types (~> 1.16)
|
156
|
+
mixlib-cli
|
157
|
+
mixlib-config (~> 2.0)
|
158
|
+
mixlib-log
|
159
|
+
mixlib-shellout (~> 1.2)
|
160
|
+
systemu (~> 2.5.2)
|
161
|
+
yajl-ruby
|
162
|
+
pry (0.9.12.6)
|
163
|
+
coderay (~> 1.0)
|
164
|
+
method_source (~> 0.8)
|
165
|
+
slop (~> 3.4)
|
166
|
+
rack (1.5.2)
|
167
|
+
rake (10.3.2)
|
168
|
+
rb-fsevent (0.9.4)
|
169
|
+
rb-inotify (0.9.4)
|
170
|
+
ffi (>= 0.5.0)
|
171
|
+
rb-kqueue (0.2.2)
|
172
|
+
ffi (>= 0.5.0)
|
173
|
+
rest-client (1.6.7)
|
174
|
+
mime-types (>= 1.16)
|
175
|
+
retryable (1.3.5)
|
176
|
+
ridley (3.1.0)
|
177
|
+
addressable
|
178
|
+
buff-config (~> 0.2)
|
179
|
+
buff-extensions (~> 0.3)
|
180
|
+
buff-ignore (~> 1.1)
|
181
|
+
buff-shell_out (~> 0.1)
|
182
|
+
celluloid (~> 0.16.0.pre)
|
183
|
+
celluloid-io (~> 0.16.0.pre)
|
184
|
+
erubis
|
185
|
+
faraday (~> 0.9.0)
|
186
|
+
hashie (>= 2.0.2)
|
187
|
+
json (>= 1.7.7)
|
188
|
+
mixlib-authentication (>= 1.3.0)
|
189
|
+
net-http-persistent (>= 2.8)
|
190
|
+
retryable
|
191
|
+
semverse (~> 1.1)
|
192
|
+
varia_model (~> 0.3)
|
193
|
+
rspec (2.14.1)
|
194
|
+
rspec-core (~> 2.14.0)
|
195
|
+
rspec-expectations (~> 2.14.0)
|
196
|
+
rspec-mocks (~> 2.14.0)
|
197
|
+
rspec-core (2.14.8)
|
198
|
+
rspec-expectations (2.14.5)
|
199
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
200
|
+
rspec-mocks (2.14.6)
|
201
|
+
rubyntlm (0.1.1)
|
202
|
+
savon (0.9.5)
|
203
|
+
akami (~> 1.0)
|
204
|
+
builder (>= 2.1.2)
|
205
|
+
gyoku (>= 0.4.0)
|
206
|
+
httpi (~> 0.9)
|
207
|
+
nokogiri (>= 1.4.0)
|
208
|
+
nori (~> 1.0)
|
209
|
+
wasabi (~> 1.0)
|
210
|
+
sawyer (0.5.4)
|
211
|
+
addressable (~> 2.3.5)
|
212
|
+
faraday (~> 0.8, < 0.10)
|
213
|
+
semverse (1.1.0)
|
214
|
+
simplecov (0.8.2)
|
215
|
+
docile (~> 1.1.0)
|
216
|
+
multi_json
|
217
|
+
simplecov-html (~> 0.8.0)
|
218
|
+
simplecov-html (0.8.0)
|
219
|
+
slop (3.5.0)
|
220
|
+
solve (1.2.0)
|
221
|
+
dep_selector (~> 1.0)
|
222
|
+
semverse (~> 1.1)
|
223
|
+
systemu (2.5.2)
|
224
|
+
thor (0.19.1)
|
225
|
+
timers (2.0.0)
|
226
|
+
hitimes
|
227
|
+
uuidtools (2.1.4)
|
228
|
+
vagrant-berkshelf (2.0.1)
|
229
|
+
berkshelf (~> 3.1)
|
230
|
+
celluloid (~> 0.16.0.pre)
|
231
|
+
celluloid-io (~> 0.16.0.pre)
|
232
|
+
varia_model (0.3.2)
|
233
|
+
buff-extensions (~> 0.2)
|
234
|
+
hashie (>= 2.0.2)
|
235
|
+
wasabi (1.0.0)
|
236
|
+
nokogiri (>= 1.4.0)
|
237
|
+
wdm (0.1.0)
|
238
|
+
winrm (1.1.3)
|
239
|
+
gssapi (~> 1.0.0)
|
240
|
+
httpclient (~> 2.2, >= 2.2.0.2)
|
241
|
+
logging (~> 1.6, >= 1.6.1)
|
242
|
+
nokogiri (~> 1.5)
|
243
|
+
rubyntlm (~> 0.1.1)
|
244
|
+
savon (= 0.9.5)
|
245
|
+
uuidtools (~> 2.1.2)
|
246
|
+
yajl-ruby (1.2.0)
|
247
|
+
|
248
|
+
PLATFORMS
|
249
|
+
ruby
|
250
|
+
|
251
|
+
DEPENDENCIES
|
252
|
+
mocha
|
253
|
+
rake
|
254
|
+
rspec
|
255
|
+
simplecov
|
256
|
+
vagrant!
|
257
|
+
vagrant-berkshelf (>= 2.0.1)
|
258
|
+
vagrant-chef-zero!
|
data/README.md
CHANGED
@@ -3,8 +3,8 @@ NOTE: This version (`0.5.0`) is in beta status as I have not had time to fully t
|
|
3
3
|
|
4
4
|
|
5
5
|
# Vagrant-Chef-Zero
|
6
|
-
[![Build Status](https://travis-ci.org/andrewgross/vagrant-chef-zero.
|
7
|
-
[![Code Climate](https://codeclimate.com/
|
6
|
+
[![Build Status](https://travis-ci.org/andrewgross/vagrant-chef-zero.svg)](https://travis-ci.org/andrewgross/vagrant-chef-zero)
|
7
|
+
[![Code Climate](https://codeclimate.com/github/andrewgross/vagrant-chef-zero.png)](https://codeclimate.com/github/andrewgross/vagrant-chef-zero)
|
8
8
|
[![Dependency Status](https://gemnasium.com/andrewgross/vagrant-chef-zero.png)](https://gemnasium.com/andrewgross/vagrant-chef-zero)
|
9
9
|
[![Coverage Status](https://coveralls.io/repos/andrewgross/vagrant-chef-zero/badge.png)](https://coveralls.io/r/andrewgross/vagrant-chef-zero)
|
10
10
|
|
@@ -18,7 +18,7 @@ Note: Only NIX systems supported at this time due to a call to `lsof` to find ru
|
|
18
18
|
vagrant plugin install vagrant-chef-zero
|
19
19
|
```
|
20
20
|
|
21
|
-
###
|
21
|
+
### Compatibility
|
22
22
|
|
23
23
|
Currently only tested on NIX systems, though I believe most NIX only commands have been removed.
|
24
24
|
|
@@ -103,3 +103,6 @@ Not required. As `Chef-Zero` does no authentication we can fake this. If it is
|
|
103
103
|
* Ben Dean (@b-dean)
|
104
104
|
* Jesse Nelson (@spheromak)
|
105
105
|
* Mark Cornick (@markcornick)
|
106
|
+
* Jesse Adams (@jesseadams)
|
107
|
+
* Andrew Havens (@andrewhavens)
|
108
|
+
* Bao Nguyen (@sysbot)
|
data/Vagrantfile
CHANGED
@@ -3,7 +3,7 @@ Vagrant.require_plugin "vagrant-chef-zero"
|
|
3
3
|
|
4
4
|
Vagrant.configure("2") do |config|
|
5
5
|
# config.berkshelf.enabled = true
|
6
|
-
config.chef_zero.chef_repo_path = "spec/vagrant-chef-zero/fixtures
|
6
|
+
config.chef_zero.chef_repo_path = "spec/vagrant-chef-zero/fixtures"
|
7
7
|
#config.chef_zero.nodes = "spec/vagrant-chef-zero/fixtures/nodes"
|
8
8
|
#config.chef_zero.environments = "spec/vagrant-chef-zero/fixtures/environments"
|
9
9
|
#config.chef_zero.data_bags = "spec/vagrant-chef-zero/fixtures/data_bags"
|
@@ -11,7 +11,7 @@ Vagrant.configure("2") do |config|
|
|
11
11
|
#config.chef_zero.roles = "foobar"
|
12
12
|
|
13
13
|
# Single Box Config
|
14
|
-
config.vm.box = "precise64"
|
14
|
+
config.vm.box = "hashicorp/precise64"
|
15
15
|
config.vm.provision :chef_client do |chef|
|
16
16
|
chef.run_list = []
|
17
17
|
end
|
@@ -140,7 +140,13 @@ module VagrantPlugins
|
|
140
140
|
elsif path.respond_to?('empty?') && path.empty?
|
141
141
|
cookbook_paths = []
|
142
142
|
elsif path.is_a?(Array)
|
143
|
-
|
143
|
+
path.each do |single_path|
|
144
|
+
if is_valid_cookbook?(single_path)
|
145
|
+
cookbook_paths << single_path
|
146
|
+
elsif is_valid_cookbook_directory?(single_path)
|
147
|
+
cookbook_paths = cookbook_paths + select_valid_cookbooks(single_path)
|
148
|
+
end
|
149
|
+
end
|
144
150
|
elsif path.is_a?(String) && is_valid_cookbook?(path)
|
145
151
|
cookbook_paths = [path]
|
146
152
|
elsif path.is_a?(String) && File.directory?(path) && is_valid_cookbook_directory?(path)
|
@@ -17,6 +17,9 @@ describe "VagrantPlugins::ChefZero::Action::Upload" do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
end
|
20
|
+
|
21
|
+
File.stub(:exists?).and_return(false)
|
22
|
+
File.stub(:directory?).and_return(false)
|
20
23
|
end
|
21
24
|
|
22
25
|
describe "Normalizing Cookbook Path" do
|
@@ -41,16 +44,68 @@ describe "VagrantPlugins::ChefZero::Action::Upload" do
|
|
41
44
|
|
42
45
|
end
|
43
46
|
|
44
|
-
describe "with a non-empty array" do
|
47
|
+
describe "with a non-empty array of cookbooks" do
|
45
48
|
|
46
49
|
it "should return the given array" do
|
47
50
|
path = ["foo"]
|
51
|
+
|
52
|
+
File.stub(:exists?).with("foo/metadata.rb").and_return(true)
|
53
|
+
|
48
54
|
d = DummyUpload.new("foo", "bar")
|
49
55
|
d.select_cookbooks(path).should eql path
|
50
56
|
end
|
51
57
|
|
52
58
|
end
|
53
59
|
|
60
|
+
describe "with a non-empty array of cookbook directories" do
|
61
|
+
|
62
|
+
it "should return the given array" do
|
63
|
+
paths = ["./foo/cookbooks", "./foo/more-cookbooks"]
|
64
|
+
cookbooks = [
|
65
|
+
"./foo/cookbooks/bar",
|
66
|
+
"./foo/cookbooks/baz",
|
67
|
+
"./foo/more-cookbooks/beep"
|
68
|
+
]
|
69
|
+
|
70
|
+
File.stub(:directory?).with(paths[0]).and_return(true)
|
71
|
+
Dir.stub(:glob).with("#{paths[0]}/*").and_return(["#{paths[0]}/bar", "#{paths[0]}/baz"])
|
72
|
+
|
73
|
+
File.stub(:exists?).with("#{paths[0]}/bar/metadata.rb").and_return(true)
|
74
|
+
File.stub(:exists?).with("#{paths[0]}/baz/metadata.json").and_return(true)
|
75
|
+
|
76
|
+
File.stub(:directory?).with(paths[1]).and_return(true)
|
77
|
+
Dir.stub(:glob).with("#{paths[1]}/*").and_return(["#{paths[1]}/beep"])
|
78
|
+
|
79
|
+
File.stub(:exists?).with("#{paths[1]}/beep/metadata.rb").and_return(true)
|
80
|
+
|
81
|
+
d = DummyUpload.new("foo", "bar")
|
82
|
+
d.select_cookbooks(paths).should eql cookbooks
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
describe "with a non-empty array of cookbooks and cookbook directories" do
|
88
|
+
|
89
|
+
it "should return the given array" do
|
90
|
+
paths = ["foo", "./foo/more-cookbooks"]
|
91
|
+
cookbooks = [
|
92
|
+
"foo",
|
93
|
+
"./foo/more-cookbooks/beep"
|
94
|
+
]
|
95
|
+
|
96
|
+
File.stub(:exists?).with("#{paths[0]}/metadata.json").and_return(true)
|
97
|
+
|
98
|
+
File.stub(:directory?).with(paths[1]).and_return(true)
|
99
|
+
Dir.stub(:glob).with("#{paths[1]}/*").and_return(["#{paths[1]}/beep"])
|
100
|
+
|
101
|
+
File.stub(:exists?).with("#{paths[1]}/beep/metadata.rb").and_return(true)
|
102
|
+
|
103
|
+
d = DummyUpload.new("foo", "bar")
|
104
|
+
d.select_cookbooks(paths).should eql cookbooks
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
54
109
|
describe "with a string that is a path to valid cookbook with metadata.rb" do
|
55
110
|
|
56
111
|
it "should return the given path in an array" do
|
@@ -84,7 +139,6 @@ describe "VagrantPlugins::ChefZero::Action::Upload" do
|
|
84
139
|
File.stub(:directory?).with(path).and_return(true)
|
85
140
|
Dir.stub(:glob).with("#{path}/*").and_return(["#{path}/bar", "#{path}/baz"])
|
86
141
|
|
87
|
-
File.stub(:exists?).and_return(false)
|
88
142
|
File.stub(:exists?).with("#{path}/bar/metadata.rb").and_return(true)
|
89
143
|
File.stub(:exists?).with("#{path}/baz/metadata.json").and_return(true)
|
90
144
|
|
@@ -98,9 +152,6 @@ describe "VagrantPlugins::ChefZero::Action::Upload" do
|
|
98
152
|
|
99
153
|
it "should send a UI warning and return an empty array" do
|
100
154
|
path = "foo"
|
101
|
-
File.stub(:exists?).and_return(false)
|
102
|
-
File.stub(:directory?).and_return(false)
|
103
|
-
|
104
155
|
d = DummyUpload.new("foo", "bar")
|
105
156
|
d.select_cookbooks(path).should eql []
|
106
157
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
name "blork"
|
data/vagrant-chef-zero.gemspec
CHANGED
@@ -15,17 +15,10 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = "vagrant-chef-zero"
|
16
16
|
s.license = "MIT"
|
17
17
|
|
18
|
-
s.add_dependency "chef-zero", "
|
18
|
+
s.add_dependency "chef-zero", "~> 2.0"
|
19
19
|
s.add_dependency "ridley", ">= 1.0.0"
|
20
20
|
s.add_dependency "chef", "~> 11.0"
|
21
21
|
|
22
|
-
s.add_development_dependency "mocha"
|
23
|
-
s.add_development_dependency "simplecov"
|
24
|
-
s.add_development_dependency "rake"
|
25
|
-
s.add_development_dependency "rspec"
|
26
|
-
|
27
|
-
# The following block taken from @mitchellh 's vagrant-aws code
|
28
|
-
|
29
22
|
# The following block of code determines the files that should be included
|
30
23
|
# in the gem. It does this by reading all the files in the directory where
|
31
24
|
# this gemspec is, and parsing out the ignored files from the gitignore.
|
metadata
CHANGED
@@ -1,138 +1,87 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-chef-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Gross
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-zero
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ridley
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: chef
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '11.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '11.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: mocha
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '>='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '>='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '>='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
55
|
description: Enables Vagrant to interact with Chef Zero
|
112
56
|
email: andrew.w.gross@gmail.com
|
113
57
|
executables: []
|
114
58
|
extensions: []
|
115
59
|
extra_rdoc_files: []
|
116
60
|
files:
|
61
|
+
- ".gitignore"
|
62
|
+
- ".ruby-version"
|
63
|
+
- ".travis.yml"
|
117
64
|
- CHANGELOG.md
|
118
65
|
- Gemfile
|
66
|
+
- Gemfile.lock
|
67
|
+
- LICENSE.txt
|
68
|
+
- Makefile
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- Vagrantfile
|
72
|
+
- lib/vagrant-chef-zero.rb
|
73
|
+
- lib/vagrant-chef-zero/action.rb
|
119
74
|
- lib/vagrant-chef-zero/action/reconfig.rb
|
120
75
|
- lib/vagrant-chef-zero/action/start.rb
|
121
76
|
- lib/vagrant-chef-zero/action/stop.rb
|
122
77
|
- lib/vagrant-chef-zero/action/upload.rb
|
123
|
-
- lib/vagrant-chef-zero/action.rb
|
124
78
|
- lib/vagrant-chef-zero/config.rb
|
125
79
|
- lib/vagrant-chef-zero/env.rb
|
126
80
|
- lib/vagrant-chef-zero/env_helpers.rb
|
127
81
|
- lib/vagrant-chef-zero/plugin.rb
|
128
82
|
- lib/vagrant-chef-zero/server_helpers.rb
|
129
83
|
- lib/vagrant-chef-zero/version.rb
|
130
|
-
-
|
131
|
-
- LICENSE.txt
|
132
|
-
- Makefile
|
133
|
-
- pkg/vagrant-chef-zero-0.7.0.gem
|
134
|
-
- Rakefile
|
135
|
-
- README.md
|
84
|
+
- pkg/vagrant-chef-zero-0.7.1.gem
|
136
85
|
- spec/lib/action/upload_spec.rb
|
137
86
|
- spec/lib/config_spec.rb
|
138
87
|
- spec/lib/server_helpers_spec.rb
|
@@ -140,6 +89,7 @@ files:
|
|
140
89
|
- spec/vagrant-chef-zero/fixtures/cookbooks/blah/metadata.rb
|
141
90
|
- spec/vagrant-chef-zero/fixtures/cookbooks/blah/recipes/default.rb
|
142
91
|
- spec/vagrant-chef-zero/fixtures/cookbooks/blah/templates/default/hi
|
92
|
+
- spec/vagrant-chef-zero/fixtures/cookbooks/blork/metadata.rb
|
143
93
|
- spec/vagrant-chef-zero/fixtures/cookbooks/blork/recipes/default.rb
|
144
94
|
- spec/vagrant-chef-zero/fixtures/cookbooks/blork/templates/default/hi
|
145
95
|
- spec/vagrant-chef-zero/fixtures/data_bags/foo/bar.json
|
@@ -157,9 +107,6 @@ files:
|
|
157
107
|
- spec/vagrant-chef-zero/fixtures/nodes/camel.json
|
158
108
|
- spec/vagrant-chef-zero/fixtures/nodes/monkey.json
|
159
109
|
- vagrant-chef-zero.gemspec
|
160
|
-
- Vagrantfile
|
161
|
-
- .gitignore
|
162
|
-
- .travis.yml
|
163
110
|
homepage: http://github.com/andrewgross/vagrant-chef-zero
|
164
111
|
licenses:
|
165
112
|
- MIT
|
@@ -170,17 +117,17 @@ require_paths:
|
|
170
117
|
- lib
|
171
118
|
required_ruby_version: !ruby/object:Gem::Requirement
|
172
119
|
requirements:
|
173
|
-
- -
|
120
|
+
- - ">="
|
174
121
|
- !ruby/object:Gem::Version
|
175
122
|
version: '0'
|
176
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
124
|
requirements:
|
178
|
-
- -
|
125
|
+
- - ">="
|
179
126
|
- !ruby/object:Gem::Version
|
180
127
|
version: 1.3.6
|
181
128
|
requirements: []
|
182
129
|
rubyforge_project: vagrant-chef-zero
|
183
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.2.2
|
184
131
|
signing_key:
|
185
132
|
specification_version: 4
|
186
133
|
summary: Enables Vagrant to interact with Chef Zero.
|