Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Backup::Splitter

Public Class Methods

new(model, chunk_size) click to toggle source
# File lib/backup/splitter.rb, line 6
def initialize(model, chunk_size)
  @model = model
  @chunk_size = chunk_size
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. 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 18
def split_with
  before_packaging
  yield @split_command
  after_packaging
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.