Methods

Class/Module Index [+]

Quicksearch

Backup::Syncer::RSync::Local

Public Class Methods

new(&block) click to toggle source

Instantiates a new RSync::Local Syncer.

Pre-configured defaults specified in Configuration::Syncer::RSync::Local are set via a super() call to RSync::Base, which in turn will invoke Syncer::Base.

Once pre-configured defaults and RSync specific defaults are set, the block from the user's configuration file is evaluated.

# File lib/backup/syncer/rsync/local.rb, line 17
def initialize(&block)
  super

  instance_eval(&block) if block_given?
end

Public Instance Methods

perform!() click to toggle source

Performs the RSync::Local operation debug options: -vhP

# File lib/backup/syncer/rsync/local.rb, line 26
def perform!
  Logger.message(
    "#{ syncer_name } started syncing the following directories:\n\s\s" +
    @directories.join("\n\s\s")
  )
  run("#{ utility(:rsync) } #{ options } " +
      "#{ directories_option } '#{ dest_path }'")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.