class Object

Public Instance Methods

rsync(host) click to toggle source
# File lib/rsyncinator/built-in.rb, line 5
def rsync(host)
  execute(
    "rsync", "-ah", fetch(:rsync_options), fetch(:rsync_excludes),
    "--rsh", "\"ssh", "-o", "PasswordAuthentication=no", "-o", "StrictHostKeyChecking=no\"",
    "--log-file", fetch(:rsync_log_file),
    "#{fetch(:rsync_user)}@#{fetch(:rsync_from_host)}:#{fetch(:rsync_source)}", fetch(:rsync_destination)
  )
end
rsync_log_run(host) click to toggle source
# File lib/rsyncinator/built-in.rb, line 14
def rsync_log_run(host)
  capture("tac #{fetch(:rsync_log_file)} | grep 'receiving file list' -B100000 -m1 | tac")
end
rsync_log_tail(host) click to toggle source
# File lib/rsyncinator/built-in.rb, line 18
def rsync_log_tail(host)
  capture "tail", "-n", fetch(:rsync_tail_lines), fetch(:rsync_log_file)
end