class Backup::Syncer::RSync::Local
Public Instance Methods
perform!()
click to toggle source
# File lib/backup/syncer/rsync/local.rb, line 5 def perform! log!(:started) create_dest_path! run("#{rsync_command} #{paths_to_push} '#{dest_path}'") log!(:finished) end
Private Instance Methods
create_dest_path!()
click to toggle source
# File lib/backup/syncer/rsync/local.rb, line 21 def create_dest_path! FileUtils.mkdir_p dest_path end
dest_path()
click to toggle source
Expand path, since this is local and shell-quoted.
# File lib/backup/syncer/rsync/local.rb, line 17 def dest_path @dest_path ||= File.expand_path(path) end