Class: PuppetModule::Pkg::Tasks::Install
- Inherits:
-
Object
- Object
- PuppetModule::Pkg::Tasks::Install
- Defined in:
- lib/puppet_module/pkg/tasks/install.rb
Instance Method Summary collapse
-
#initialize(system) ⇒ Install
constructor
A new instance of Install.
- #invoke(mod, opts) ⇒ Object
Constructor Details
#initialize(system) ⇒ Install
Returns a new instance of Install.
5 6 7 |
# File 'lib/puppet_module/pkg/tasks/install.rb', line 5 def initialize(system) @sys = system end |
Instance Method Details
#invoke(mod, opts) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/puppet_module/pkg/tasks/install.rb', line 9 def invoke(mod, opts) @mod = mod @out_dir = opts.install_dir @sys.mkdir install_path @sys.cp assets_to_install, install_path install_deps if opts.recursive end |