From 353d5ab8095cbd5e176470321416c946bb60d198 Mon Sep 17 00:00:00 2001 From: Mike Marseglia Date: Mon, 9 May 2016 15:25:04 -0400 Subject: [PATCH] Clear any previous definition of the rake task named 'lint'. Configure puppet-lint to ignore vendor directory --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rakefile b/Rakefile index 67df315..c27c634 100644 --- a/Rakefile +++ b/Rakefile @@ -1,2 +1,9 @@ require 'puppet-lint/tasks/puppet-lint' +# Clear any previous definition of the rake task named 'lint'. +Rake::Task[:lint].clear + +# Configure puppet-lint to ignore vendor directory +PuppetLint::RakeTask.new :lint do |config| + config.ignore_paths = [ "vendor/**/*" ] +end