Class: PuppetModule::Pkg::Tasks::RakeTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- PuppetModule::Pkg::Tasks::RakeTasks
- Defined in:
- lib/puppet_module/pkg/tasks/rake_tasks.rb
Instance Method Summary collapse
-
#initialize(mod_info) ⇒ RakeTasks
constructor
A new instance of RakeTasks.
Constructor Details
#initialize(mod_info) ⇒ RakeTasks
Returns a new instance of RakeTasks.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/puppet_module/pkg/tasks/rake_tasks.rb', line 13 def initialize(mod_info) sys = System.new = OpenStruct.new( :install_dir => 'build', :pkg_dir => 'pkg') desc "Install the module in a local temp dir" task :install => :clean do Install.new(sys).invoke(mod_info, ) end desc "Clean build artifacts" task :clean do Clean.new(sys).invoke(mod_info, ) end desc "Wraps the module into a Debian package" task :deb => :install do Deb.new(sys).invoke(mod_info, ) end desc "Wraps the module into a RPM package" task :rpm => :install do RPM.new(sys).invoke(mod_info, ) end end |