Sha256: 1c1f369535b543e06b68fcfeb3e7b5a4717e6e4ea480fe57d4fa495e947fb433
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
# encoding: utf-8 module Backup module Syncer module RSync class Pull < Push ## # Performs the RSync::Pull operation # debug options: -vhP def perform! write_password_file! @directories.each do |directory| Logger.message("#{ syncer_name } started syncing '#{ directory }'.") Logger.silent( run("#{ utility(:rsync) } #{ options } " + "'#{ username }@#{ ip }:#{ directory.sub(/^\~\//, '') }' " + "'#{ dest_path }'") ) end ensure remove_password_file! end private ## # Return expanded @path def dest_path @dest_path ||= File.expand_path(@path) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems