Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Backup::Splitter

Attributes

chunk_size[R]
package[R]
suffix_length[R]

Public Class Methods

new(model, chunk_size, suffix_length) click to toggle source
# File lib/backup/splitter.rb, line 8
def initialize(model, chunk_size, suffix_length)
  @package = model.package
  @chunk_size = chunk_size
  @suffix_length = suffix_length
end

Public Instance Methods

split_with() click to toggle source

This is called as part of the procedure used to build the final backup package file(s). It yields it’s portion of the command line for this procedure, which will split the data being piped into it into multiple files, based on the @chunk_size, using a suffix length as specified by @suffix_length. Once the packaging procedure is complete, it will return and @package.chunk_suffixes will be set based on the resulting files.

# File lib/backup/splitter.rb, line 22
def split_with
  Logger.info "Splitter configured with a chunk size of #{ chunk_size }MB " +
              "and suffix length of #{ suffix_length }."
  yield split_command
  after_packaging
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.