Class: BiblioTech::Builders::GzipCompressor
- Inherits:
-
FileOutput
- Object
- Base
- File
- FileOutput
- BiblioTech::Builders::GzipCompressor
- Defined in:
- lib/bibliotech/builders/gzip.rb
Direct Known Subclasses
Constant Summary collapse
- PATTERNS =
[ /.*\.gz\z/, /.*\.gzip\z/ ]
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from FileOutput
find_explicit, identity_adapter, registry_host
Methods inherited from File
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(cmd) ⇒ Object
34 35 36 37 38 |
# File 'lib/bibliotech/builders/gzip.rb', line 34 def go(cmd) cmd |= %w{gzip} cmd.redirect_stdout(file) cmd end |