Parent

Methods

Class/Module Index [+]

Quicksearch

Backup::Compressor::Gzip

Attributes

level[RW]

Specify the level of compression to use.

Values should be a single digit from 1 to 9. Note that setting the level to either extreme may or may not give the desired result. Be sure to check the documentation for the compressor being used.

The default `level` is 6.

Public Class Methods

new(&block) click to toggle source

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

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

  @level ||= false

  instance_eval(&block) if block_given?

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.