Module: FPM::Fry::Source::Null::Cache

Defined in:
lib/fpm/fry/source.rb

Overview

A special cache that is empty.

Class Method Summary collapse

Class Method Details

.cachekeyString

Returns 32 times zero.

Returns:

  • (String)

    32 times zero



26
27
28
# File 'lib/fpm/fry/source.rb', line 26

def self.cachekey
  return '0' * 32
end

.file_mapHash

Returns an empty hash.

Returns:

  • (Hash)

    an empty hash



21
22
23
# File 'lib/fpm/fry/source.rb', line 21

def self.file_map
  return {}
end

.prefixString

Returns common path prefix of all files that should be stripped.

Returns:

  • (String)

    common path prefix of all files that should be stripped



31
32
33
# File 'lib/fpm/fry/source.rb', line 31

def self.prefix
  return ""
end

.tar_ioIO

Returns an empty tar.

Returns:

  • (IO)

    an empty tar



16
17
18
# File 'lib/fpm/fry/source.rb', line 16

def self.tar_io
  StringIO.new("\x00"*1024)
end