Methods

Class/Module Index [+]

Quicksearch

Backup::Syncer::RSync::Pull

Public Instance Methods

perform!() click to toggle source

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

# File lib/backup/syncer/rsync/pull.rb, line 10
def perform!
  write_password_file!

  @directories.each do |directory|
    Logger.message("#{ syncer_name } started syncing '#{ directory }'.")
    run("#{ utility(:rsync) } #{ options } " +
        "'#{ username }@#{ ip }:#{ directory.sub(/^\~\//, '') }' " +
        "'#{ dest_path }'")
  end

ensure
  remove_password_file!
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.