Sha256: e159ed630b86ac8d91184a1896e731f23ac115c5aa627301a42eb1fbaa7defcd
Contents?: true
Size: 549 Bytes
Versions: 56
Compression:
Stored size: 549 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 end end end end
Version data entries
56 entries across 56 versions & 7 rubygems