Method: PuppetForge::Unpacker#initialize

Defined in:
lib/shared/puppet_forge/unpacker.rb

#initialize(filename, target, tmpdir) ⇒ Unpacker

Returns a new instance of Unpacker.

Parameters:

  • filename (String)

    the file to unpack

  • target (String)

    the target directory to unpack into



31
32
33
34
35
# File 'lib/shared/puppet_forge/unpacker.rb', line 31

def initialize(filename, target, tmpdir)
  @filename = filename
  @target = target
  @tmpdir = tmpdir
end