summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTomas Barton <barton.tomas@gmail.com>2013-10-13 19:00:48 +0200
committerTomas Barton <barton.tomas@gmail.com>2013-10-13 19:00:48 +0200
commitdcea01c89c802c4055e2e99a4ed17576a4c5581b (patch)
treee09667e3cf845d93e2262b5cab01dd024df4ed90 /Rakefile
parentc5f36700d044fbdf61b17e105bddd2147ff22f29 (diff)
linking current directory to fixtures
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 6b92f24..3bc7abd 100644
--- a/Rakefile
+++ b/Rakefile
@@ -14,8 +14,11 @@ PuppetLint.configuration.send("disable_80chars")
# offers more possibilities like explicit version management, forge downloads,...
task :librarian_spec_prep do
sh "librarian-puppet install --path=spec/fixtures/modules/"
+ pwd = `pwd`.strip
+ unless File.directory?("#{pwd}/spec/fixtures/modules/munin")
+ sh "ln -s #{pwd} #{pwd}/spec/fixtures/modules/munin"
+ end
sh 'ls -laF spec/fixtures/modules'
- sh 'ls -laF spec/fixtures/modules/munin/manifests'
end
task :spec_prep => :librarian_spec_prep