Sha256: e36297768dfcba7160103097ffcc43d514db4c2caf75bb760ac57a32dc30fdd0
Contents?: true
Size: 792 Bytes
Versions: 4
Compression:
Stored size: 792 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.info("#{ syncer_name } started syncing '#{ directory }'.") run("#{ utility(:rsync) } #{ options } " + "'#{ username }@#{ ip }:#{ directory.sub(/^\~\//, '') }' " + "'#{ dest_path }'") end ensure remove_password_file! end private ## # Return expanded @path, since this path is local def dest_path @dest_path ||= File.expand_path(@path) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
backup-3.1.3 | lib/backup/syncer/rsync/pull.rb |
backup-3.1.2 | lib/backup/syncer/rsync/pull.rb |
backup-3.1.1 | lib/backup/syncer/rsync/pull.rb |
backup-3.1.0 | lib/backup/syncer/rsync/pull.rb |