1
# Rakefile for Puppet -*- ruby -*-
3
$LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks')
6
require 'rake/packagetask'
7
require 'rake/gempackagetask'
9
require "rspec/core/rake_task"
12
PUPPETVERSION = File.read('lib/puppet.rb')[/PUPPETVERSION *= *'(.*)'/,1] or fail "Couldn't find PUPPETVERSION"
15
Dir['tasks/**/*.rake'].each { |t| load t }
32
Rake::PackageTask.new("puppet", Puppet::PUPPETVERSION) do |pkg|
33
pkg.package_dir = 'pkg'
34
pkg.need_tar_gz = true
35
pkg.package_files = FILES.to_a
42
desc "Create the tarball and the gem - use when releasing"
43
task :puppetpackages => [:create_gem, :package]
45
RSpec::Core::RakeTask.new do |t|
46
t.pattern ='spec/{unit,integration}/**/*.rb'
47
t.fail_on_error = true
50
desc "Run the unit tests"