diff options
author | Bren Briggs <bbriggs@users.noreply.github.com> | 2016-07-30 18:02:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-30 18:02:56 -0400 |
commit | ea30561975cccbb589dfccc230f57158753fdd29 (patch) | |
tree | 5e32c501ab59ae88b3b36bb69ab6fbe8585fba52 /Rakefile | |
parent | 336e3686c116aa8c1855430f31b68548e1f6558a (diff) | |
parent | edc5f2af7132742b4108310e661ea0ead4809e6d (diff) |
Merge pull request #67 from voxpupuli/modulesync
modulesync 0.11.0
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,12 +1,15 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet_blacksmith/rake_tasks' require 'voxpupuli/release/rake_tasks' -require 'rubocop/rake_task' require 'puppet-strings/rake_tasks' -RuboCop::RakeTask.new(:rubocop) do |task| - # These make the rubocop experience maybe slightly less terrible - task.options = ['-D', '-S', '-E'] +if RUBY_VERSION >= '2.0.0' + require 'rubocop/rake_task' + + RuboCop::RakeTask.new(:rubocop) do |task| + # These make the rubocop experience maybe slightly less terrible + task.options = ['-D', '-S', '-E'] + end end PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{check}:%{KIND}:%{message}' |