meez 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/meez +1 -0
- data/lib/meez/meez.rb +1 -34
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWYzZmY2OWMzZTU5NmMyN2Q1ODMxZmMwNTcyODhjOTgxOTgwNmI1OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTViZTM5YmJjMDI0Yzk2MGQ1NTAwZDkyMzEwYmYxN2Y3MWJhNzcyZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWMyNGE5YWJlMzJmZWYzNGQxNGJkNDFiY2U4MmFkNzY5YzE5NzJkODg5OGY3
|
10
|
+
MGVkYjlkZmY5MGExMDFiMWE4NDZkYTkzZDE0ZmI3NDJjNjBjZWRlNGJiZDg5
|
11
|
+
ZWZhOTYxZDIwODYwOThiNGJmNDNmZTYyNWRjYzZiOTE2ZGEwMzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDQ1MmJlODkwMTU4MDdhZTU3ZTc0NTc3Zjc3YzVhMzJjNjY4NmRlOWMxMzc4
|
14
|
+
ZGFmYWFjNjc2MDk2MzE3NzYxMTY5NTZhMDFmOGJmMmNmNTI0YzA4ZjdmZTVl
|
15
|
+
ZTFjNzBhYmM2NWYxNTFhN2FiNGI4YjU5ZmFjM2MzYTU2ZDEwZGU=
|
data/bin/meez
CHANGED
data/lib/meez/meez.rb
CHANGED
@@ -219,32 +219,8 @@ RSpec::Core::RakeTask.new(:spec) do |t, args|
|
|
219
219
|
t.rspec_opts = 'test/unit/spec'
|
220
220
|
end
|
221
221
|
|
222
|
-
desc "Runs knife cookbook test"
|
223
|
-
task :knife do
|
224
|
-
Rake::Task[:prepare_sandbox].execute
|
225
|
-
sh "bundle exec knife cookbook test #{cookbook_name} -c test/.chef/knife.rb -o \#{sandbox_path}/../"
|
226
|
-
Rake::Task[:nuke_sandbox].execute
|
227
|
-
end
|
228
|
-
|
229
|
-
task :prepare_sandbox do
|
230
|
-
files = %w{*.md *.rb attributes definitions files libraries providers recipes resources templates}
|
231
|
-
|
232
|
-
rm_rf sandbox_path
|
233
|
-
mkdir_p sandbox_path
|
234
|
-
cp_r Dir.glob("{\#{files.join(',')}}"), sandbox_path
|
235
|
-
end
|
236
|
-
|
237
|
-
task :nuke_sandbox do
|
238
|
-
rm_rf sandbox_path
|
239
|
-
end
|
240
|
-
|
241
|
-
private
|
242
|
-
def sandbox_path
|
243
|
-
File.join(%w( / tmp cookbooks #{cookbook_name} ))
|
244
|
-
end
|
245
|
-
|
246
222
|
# The default rake task should just run it all
|
247
|
-
task default: ['style', '
|
223
|
+
task default: ['style', 'spec', 'integration']
|
248
224
|
EOF
|
249
225
|
file.write(contents)
|
250
226
|
end
|
@@ -264,15 +240,6 @@ task default: ['style', 'knife', 'spec', 'integration']
|
|
264
240
|
path = File.join(options[:path], cookbook_name)
|
265
241
|
puts "\tAppend Gemfile"
|
266
242
|
File.open(File.join(path, 'Gemfile'), 'a') { |f| f.write("gem 'chef', '~> 11.8'\n") }
|
267
|
-
config_path = File.join(path, 'test', '.chef')
|
268
|
-
FileUtils.mkdir_p(config_path)
|
269
|
-
File.open(File.join(config_path, 'knife.rb'), 'w') do |file|
|
270
|
-
contents = <<-EOF
|
271
|
-
cache_type 'BasicFile'
|
272
|
-
cache_options(:path => "\#{ENV['HOME']}/.chef/checksums")
|
273
|
-
EOF
|
274
|
-
file.write(contents)
|
275
|
-
end
|
276
243
|
end
|
277
244
|
|
278
245
|
def self.init_foodcritic(cookbook_name, options)
|