Update Rakefile to my latest template version
* Add a 'clean' task * Fix an issue when there are no repository fixtures
This commit is contained in:
parent
b97cb4ae28
commit
4c77eed8ec
1 changed files with 6 additions and 0 deletions
6
Rakefile
6
Rakefile
|
@ -43,6 +43,7 @@ task :spec_prep do
|
||||||
File::exists?(target) || system("git clone #{repo} #{target}")
|
File::exists?(target) || system("git clone #{repo} #{target}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
FileUtils::mkdir_p("spec/fixtures/modules")
|
||||||
fixtures("symlinks").each do |source, target|
|
fixtures("symlinks").each do |source, target|
|
||||||
File::exists?(target) || FileUtils::ln_s(source, target)
|
File::exists?(target) || FileUtils::ln_s(source, target)
|
||||||
end
|
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"
|
desc "Check puppet manifests with puppet-lint"
|
||||||
task :lint do
|
task :lint do
|
||||||
# This requires pull request: https://github.com/rodjek/puppet-lint/pull/81
|
# This requires pull request: https://github.com/rodjek/puppet-lint/pull/81
|
||||||
|
|
Loading…
Reference in a new issue