2 require 'rspec/core/rake_task'
4 task :default => [:spec]
6 desc "Run all module spec tests (Requires rspec-puppet gem)"
7 RSpec::Core::RakeTask.new(:spec) do |t|
8 t.rspec_opts = ['--color']
9 t.pattern = 'spec/{classes,defines,unit}/**/*_spec.rb'
12 desc "Build puppet module package"
14 # This will be deprecated once puppet-module is a face.
16 Gem::Specification.find_by_name('puppet-module')
17 rescue Gem::LoadError, NoMethodError
19 pmod = Puppet::Face['module', :current]
24 desc "Check puppet manifests with puppet-lint"
26 # This requires pull request: https://github.com/rodjek/puppet-lint/pull/81
27 system("puppet-lint manifests")
28 system("puppet-lint tests")