Module: FPM::Fry::Source::Null::Cache
- Defined in:
- lib/fpm/fry/source.rb
Overview
A special cache that is empty.
Class Method Summary collapse
-
.cachekey ⇒ String
32 times zero.
-
.file_map ⇒ Hash
An empty hash.
-
.prefix ⇒ String
Common path prefix of all files that should be stripped.
-
.tar_io ⇒ IO
An empty tar.
Class Method Details
.cachekey ⇒ String
Returns 32 times zero.
26 27 28 |
# File 'lib/fpm/fry/source.rb', line 26 def self.cachekey return '0' * 32 end |
.file_map ⇒ Hash
Returns an empty hash.
21 22 23 |
# File 'lib/fpm/fry/source.rb', line 21 def self.file_map return {} end |
.prefix ⇒ String
Returns 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_io ⇒ IO
Returns an empty tar.
16 17 18 |
# File 'lib/fpm/fry/source.rb', line 16 def self.tar_io StringIO.new("\x00"*1024) end |