Class: PuppetModule::Pkg::Tasks::Build
- Inherits:
-
Object
- Object
- PuppetModule::Pkg::Tasks::Build
- Defined in:
- lib/puppet_module/pkg/tasks/build.rb
Instance Method Summary collapse
- #filename ⇒ Object
-
#initialize(system) ⇒ Build
constructor
A new instance of Build.
- #invoke(mod, opts) ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(system) ⇒ Build
Returns a new instance of Build.
23 24 25 |
# File 'lib/puppet_module/pkg/tasks/build.rb', line 23 def initialize(system) @sys = system end |
Instance Method Details
#filename ⇒ Object
39 40 41 |
# File 'lib/puppet_module/pkg/tasks/build.rb', line 39 def filename raise NotImplementedError end |
#invoke(mod, opts) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/puppet_module/pkg/tasks/build.rb', line 27 def invoke(mod, opts) self.modinfo = mod self.build_opts = opts @sys.mkdir opts.pkg_dir @sys.sh("fpm #{fpm_opts} #{installed_files}") end |
#type ⇒ Object
35 36 37 |
# File 'lib/puppet_module/pkg/tasks/build.rb', line 35 def type raise NotImplementedError end |