Class: BiblioTech::Builders::ExplicitGzipExpander

Inherits:
GzipExpander show all
Defined in:
lib/bibliotech/builders/gzip.rb

Constant Summary

Constants inherited from GzipExpander

GzipExpander::PATTERNS

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from GzipExpander

#go

Methods inherited from FileInput

find_explicit, identity_adapter, registry_host

Methods inherited from File

find_class

Methods inherited from Base

adapter_registry, for, #initialize, null_adapter, register, registry, supported_adapters

Constructor Details

This class inherits a constructor from BiblioTech::Builders::Base

Instance Method Details

#fileObject



19
20
21
22
23
24
25
# File 'lib/bibliotech/builders/gzip.rb', line 19

def file
  file = super
  unless PATTERNS.any?{|pattern| pattern =~ file}
    return file + ".gz"
  end
  file
end