diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-14 11:56:23 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-14 11:56:23 -0800 |
commit | 396793867a801a82604adb1ab27bbd6f8eb065c5 (patch) | |
tree | 114a70ec733d468afd14757c003817ce8f3c8ac4 | |
parent | 652c10fd512997a1fe160537c45072dbf0f528de (diff) | |
download | chef-396793867a801a82604adb1ab27bbd6f8eb065c5.tar.gz |
make chefstyle optional
if you 'bundle install --without development test' then the Rakefile
will be broken without this.
breaks appbundle-updater, so not sure how our kitchen tests are
passing...
-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 |