Class: BiblioTech::Builders::ExplicitGzipCompressor

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

Constant Summary

Constants inherited from GzipCompressor

GzipCompressor::PATTERNS

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from GzipCompressor

#go

Methods inherited from FileOutput

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



44
45
46
47
48
49
50
# File 'lib/bibliotech/builders/gzip.rb', line 44

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