Method: Puppet::ModuleTool::LocalTarball#initialize
- Defined in:
- lib/puppet/module_tool/local_tarball.rb
#initialize(filename) ⇒ LocalTarball
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LocalTarball.
13 14 15 16 17 18 19 |
# File 'lib/puppet/module_tool/local_tarball.rb', line 13 def initialize(filename) unpack(filename, tmpdir) Puppet.debug "Unpacked local tarball to #{tmpdir}" mod = Puppet::Module.new('tarball', tmpdir, nil) @release = ModuleRelease.new(self, mod) end |