meez 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/bin/meez +1 -0
  3. data/lib/meez/meez.rb +1 -34
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzZmNmI0NTFjNTE0YmJiZmQ3OGQ3ZDk5YTZiODAyMzY5MzQwNjk3Mg==
4
+ YWYzZmY2OWMzZTU5NmMyN2Q1ODMxZmMwNTcyODhjOTgxOTgwNmI1OQ==
5
5
  data.tar.gz: !binary |-
6
- ZGFlZWI2MDBlODRkNWNiZmY3NDZlYjIxN2Q0ODFkNWM3MzJjNjgxYg==
6
+ OTViZTM5YmJjMDI0Yzk2MGQ1NTAwZDkyMzEwYmYxN2Y3MWJhNzcyZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTZlNjlhMGVhZGFlNzVkMjgwNTIzNDRkZDQ3MTU1NzBiZDg4ZTI2MWQzMDA4
10
- OTBhZTYyYjY5ZWU2OTFmYjQ4ZDVjM2UxZjUxYzQ2Y2YyMmY5MDg3NThmNDlm
11
- YjE3MDI1NTc5MjZhZTIxODk0N2RiMzU5OGJhYWNjNzFlMzU0OTg=
9
+ ZWMyNGE5YWJlMzJmZWYzNGQxNGJkNDFiY2U4MmFkNzY5YzE5NzJkODg5OGY3
10
+ MGVkYjlkZmY5MGExMDFiMWE4NDZkYTkzZDE0ZmI3NDJjNjBjZWRlNGJiZDg5
11
+ ZWZhOTYxZDIwODYwOThiNGJmNDNmZTYyNWRjYzZiOTE2ZGEwMzg=
12
12
  data.tar.gz: !binary |-
13
- OTMyYWFiMWZlMzY5M2ZjZWEzMjcxMjAyNzg2YTgwNjFhNjM3NDA1Zjc0ZDM4
14
- MDAzZTQxODRlZmNiMDRkOTY3MTNhYTgwZTFjMTFlZjRkYjIwYzFkY2ZjMzMz
15
- Y2E4NmMyODNmNjc5NmIzNTJhNDBkZDAyNDBjZGNhMzA2NTU5YjM=
13
+ MDQ1MmJlODkwMTU4MDdhZTU3ZTc0NTc3Zjc3YzVhMzJjNjY4NmRlOWMxMzc4
14
+ ZGFmYWFjNjc2MDk2MzE3NzYxMTY5NTZhMDFmOGJmMmNmNTI0YzA4ZjdmZTVl
15
+ ZTFjNzBhYmM2NWYxNTFhN2FiNGI4YjU5ZmFjM2MzYTU2ZDEwZGU=
data/bin/meez CHANGED
@@ -44,6 +44,7 @@ unless options[:help]
44
44
  puts " $ cd #{File.join(options[:path], cookbook_name)}"
45
45
  puts ' $ bundle install'
46
46
  puts ' $ bundle exec berks install'
47
+ puts ' $ bundle exec rake'
47
48
  else
48
49
  puts 'Need to specify a cookbook'
49
50
  puts opt_parser
@@ -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', 'knife', 'spec', 'integration']
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Czarkowski