Method: Puppet::ModuleTool::Applications::Unpacker#tmpdir

Defined in:
lib/puppet/module_tool/applications/unpacker.rb

#tmpdirString

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.

Obtain a suitable temporary path for unpacking tarballs

rubocop:disable Naming/MemoizedInstanceVariableName

Returns:

  • (String)

    path to temporary unpacking location



96
97
98
# File 'lib/puppet/module_tool/applications/unpacker.rb', line 96

def tmpdir
  @dir ||= Dir.mktmpdir('tmp', Puppet::Forge::Cache.base_path)
end