From 4c77eed8ec78ebd7ee5ffa745dec010ac1d45983 Mon Sep 17 00:00:00 2001 From: Branan Purvine-Riley Date: Fri, 25 May 2012 11:08:15 -0700 Subject: [PATCH] Update Rakefile to my latest template version * Add a 'clean' task * Fix an issue when there are no repository fixtures --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rakefile b/Rakefile index 20fc384..ab25667 100644 --- a/Rakefile +++ b/Rakefile @@ -43,6 +43,7 @@ task :spec_prep do File::exists?(target) || system("git clone #{repo} #{target}") end + FileUtils::mkdir_p("spec/fixtures/modules") fixtures("symlinks").each do |source, target| File::exists?(target) || FileUtils::ln_s(source, target) end @@ -77,6 +78,11 @@ task :build do end end +desc "Clean a built module package" +task :clean do + FileUtils.rm_rf("pkg/") +end + desc "Check puppet manifests with puppet-lint" task :lint do # This requires pull request: https://github.com/rodjek/puppet-lint/pull/81 -- 2.45.2