Sha256: ce9215e20cfb82b57ee68e4b4bf4874a22e8abbc656c4eabba63a5820df2eaf5

Contents?: true

Size: 1.08 KB

Versions: 12

Compression:

Stored size: 1.08 KB

Contents

# Rakefile for Puppet -*- ruby -*-

$LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks')

require 'rake'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rspec'
require "rspec/core/rake_task"

module Puppet
    PUPPETVERSION = File.read('lib/puppet.rb')[/PUPPETVERSION *= *'(.*)'/,1] or fail "Couldn't find PUPPETVERSION"
end

Dir['tasks/**/*.rake'].each { |t| load t }

FILES = FileList[
    '[A-Z]*',
    'install.rb',
    'bin/**/*',
    'sbin/**/*',
    'lib/**/*',
    'conf/**/*',
    'man/**/*',
    'examples/**/*',
    'ext/**/*',
    'tasks/**/*',
    'test/**/*',
    'spec/**/*'
]

Rake::PackageTask.new("puppet", Puppet::PUPPETVERSION) do |pkg|
    pkg.package_dir = 'pkg'
    pkg.need_tar_gz = true
    pkg.package_files = FILES.to_a
end

task :default do
    sh %{rake -T}
end

desc "Create the tarball and the gem - use when releasing"
task :puppetpackages => [:create_gem, :package]

RSpec::Core::RakeTask.new do |t|
    t.pattern ='spec/{unit,integration}/**/*.rb'
    t.fail_on_error = true
end

desc "Run the unit tests"
task :unit do
    sh "cd test; rake"
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-2.6.18 Rakefile
puppet-2.6.17 Rakefile
puppet-2.6.16 Rakefile
puppet-2.6.15 Rakefile
puppet-2.6.14 Rakefile
puppet-2.6.13 Rakefile
puppet-2.6.12 Rakefile
puppet-2.6.11 Rakefile
puppet-2.6.10 Rakefile
puppet-2.6.9 Rakefile
puppet-2.6.8 Rakefile
puppet-2.6.7 Rakefile