Class/Module Index [+]

Quicksearch

Backup::Compressor::Lzma

Attributes

best[RW]

Tells Backup::Compressor::Lzma to compress better (-9) rather than faster when set to true

fast[RW]

Tells Backup::Compressor::Lzma to compress faster (-1) rather than better when set to true

Public Class Methods

new(&block) click to toggle source

Creates a new instance of Backup::Compressor::Lzma

# File lib/backup/compressor/lzma.rb, line 18
def initialize(&block)
  load_defaults!

  @best ||= false
  @fast ||= false

  instance_eval(&block) if block_given?

  @cmd = "#{ utility(:lzma) }#{ options }"
  @ext = '.lzma'
end

Public Instance Methods

compress_with() click to toggle source

Yields to the block the compressor command and filename extension.

# File lib/backup/compressor/lzma.rb, line 33
def compress_with
  Backup::Logger.warn(
    "[DEPRECATION WARNING]\n" +
    "  Compressor::Lzma is being deprecated as of backup v.3.0.24\n" +
    "  and will soon be removed. Please see the Compressors wiki page at\n" +
    "  https://github.com/meskyanichi/backup/wiki/Compressors"
  )
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.