Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #64 from branan/rakefile_clean
[puppet-modules/puppetlabs-apt.git]
/
Rakefile
diff --git
a/Rakefile
b/Rakefile
index 20fc384a20af23090189d1f7ee8a2af3d6d6a4eb..ab25667afa062421cdaacb2ab1d39d914f32ceaa 100644
(file)
--- a/
Rakefile
+++ b/
Rakefile
@@
-43,6
+43,7
@@
task :spec_prep do
File::exists?(target) || system("git clone #{repo} #{target}")
end
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
fixtures("symlinks").each do |source, target|
File::exists?(target) || FileUtils::ln_s(source, target)
end
@@
-77,6
+78,11
@@
task :build do
end
end
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
desc "Check puppet manifests with puppet-lint"
task :lint do
# This requires pull request: https://github.com/rodjek/puppet-lint/pull/81