Class: BiblioTech::Builders::GzipExpander

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

Direct Known Subclasses

ExplicitGzipExpander

Constant Summary collapse

PATTERNS =
[ /.*\.gz\z/, /.*\.gzip\z/ ]

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from FileInput

find_explicit, identity_adapter, registry_host

Methods inherited from File

#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

#go(command) ⇒ Object



11
12
13
# File 'lib/bibliotech/builders/gzip.rb', line 11

def go(command)
  command = cmd("gunzip", "-c", file) | command
end