Class: SlidayBackup::Compressor::Base

Inherits:
Object
  • Object
show all
Includes:
SlidayBackup::Config::Helpers, Utilities::Helpers
Defined in:
lib/sliday_backup/compressor/base.rb

Direct Known Subclasses

Bzip2, Custom, Gzip

Instance Method Summary collapse

Methods included from SlidayBackup::Config::Helpers

included

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SlidayBackup::Config::Helpers

Instance Method Details

#compress_with {|@cmd, @ext| ... } ⇒ Object

Yields to the block the compressor command and filename extension.

Yields:

  • (@cmd, @ext)


11
12
13
14
# File 'lib/sliday_backup/compressor/base.rb', line 11

def compress_with
  log!
  yield @cmd, @ext
end