2013-06-05 18:35:34 +02:00
|
|
|
require 'bundler'
|
|
|
|
Bundler.require(:rake)
|
|
|
|
require 'rake/clean'
|
|
|
|
|
|
|
|
CLEAN.include('spec/fixtures/', 'doc', 'pkg')
|
|
|
|
CLOBBER.include('.tmp', '.librarian')
|
|
|
|
|
|
|
|
require 'puppetlabs_spec_helper/rake_tasks'
|
|
|
|
require 'puppet_blacksmith/rake_tasks'
|
2013-09-04 21:11:36 +02:00
|
|
|
require 'rspec-system/rake_task'
|
2013-06-05 18:35:34 +02:00
|
|
|
|
|
|
|
# use librarian-puppet to manage fixtures instead of .fixtures.yml
|
|
|
|
# offers more possibilities like explicit version management, forge downloads,...
|
|
|
|
task :librarian_spec_prep do
|
|
|
|
sh "librarian-puppet install --path=spec/fixtures/modules/"
|
|
|
|
end
|
|
|
|
task :spec_prep => :librarian_spec_prep
|
|
|
|
|
|
|
|
task :default => [:clean, :spec]
|