OSDN Git Service

b05b9e3b25434ff2f93dd93d2a90e24b44644635
[metasearch/grid-chef-repo.git] / cookbooks / nagios-grid / Rakefile
1 require 'rspec/core/rake_task'
2 require 'rubocop/rake_task'
3 require 'foodcritic'
4
5 namespace :style do
6   desc 'Run Ruby style checks'
7   RuboCop::RakeTask.new(:ruby)
8
9   desc 'Run Chef style checks'
10   FoodCritic::Rake::LintTask.new(:chef) do |t|
11     t.options = {
12       fail_tags: ['any'],
13       tags: ['~FC001'],
14     }
15   end
16 end
17
18 desc 'Run all style checks'
19 task style: ['style:chef', 'style:ruby']
20
21 desc 'Run ChefSpec examples'
22 RSpec::Core::RakeTask.new(:spec)
23
24 task default: ['style', 'spec']