diff options
-rw-r--r-- | Rakefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -46,10 +46,14 @@ task :register_eventlog do end -require "chefstyle" -require "rubocop/rake_task" -RuboCop::RakeTask.new(:style) do |task| - task.options += ["--display-cop-names", "--no-color"] +begin + require "chefstyle" + require "rubocop/rake_task" + RuboCop::RakeTask.new(:style) do |task| + task.options += ["--display-cop-names", "--no-color"] + end +rescue + puts "chefstyle/rubocop is not available. gem install chefstyle to do style checking." end begin |