Class: FPM::Fry::Source::Archive::Cache

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/fpm/fry/source/archive.rb

Direct Known Subclasses

PlainCache, TarCache, ZipCache

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#packageObject

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



63
64
65
# File 'lib/fpm/fry/source/archive.rb', line 63

def package
  @package
end

#tempdirObject

Returns the value of attribute tempdir

Returns:

  • (Object)

    the current value of tempdir



63
64
65
# File 'lib/fpm/fry/source/archive.rb', line 63

def tempdir
  @tempdir
end

Instance Method Details

#cachekeyString

Returns cachekey which is equal to the checksum.

Returns:

  • (String)

    cachekey which is equal to the checksum



69
70
71
# File 'lib/fpm/fry/source/archive.rb', line 69

def cachekey
  @observed_checksum || checksum
end