Sha256: 8063fa103f6f55b63cbfa0913d75cb7e07e210ba9f1dd8d2032a7dc5caf92efb
Contents?: true
Size: 833 Bytes
Versions: 7
Compression:
Stored size: 833 Bytes
Contents
# encoding: utf-8 module Backup module Syncer module RSync class Local < Base def perform! log!(:started) create_dest_path! run("#{ rsync_command } #{ paths_to_push } '#{ dest_path }'") log!(:finished) end private # Expand path, since this is local and shell-quoted. def dest_path @dest_path ||= File.expand_path(path) end def create_dest_path! FileUtils.mkdir_p dest_path end attr_deprecate :additional_options, :version => '3.2.0', :message => 'Use #additional_rsync_options instead.', :action => lambda {|klass, val| klass.additional_rsync_options = val } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems