cookbook-openstack-image/Rakefile
Jan Klare 103b626560 move from bundler to chefdk
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- refactored specs to work with new chefspec version

Change-Id: I8fe06d02043b084484142d4e575f25003ed127af
2015-04-29 19:32:22 +02:00

27 lines
416 B
Ruby

task default: ["test"]
task :test => [:lint, :style, :unit]
task :berks_prep do
sh %{chef exec berks vendor}
end
task :lint do
sh %{chef exec foodcritic --epic-fail any --tags ~FC003 --tags ~FC023 .}
end
task :style do
sh %{chef exec rubocop}
end
task :unit => :berks_prep do
sh %{chef exec rspec --format documentation}
end
task :clean do
rm_rf [
'berks-cookbooks',
'Berksfile.lock'
]
end