Class: Backup::Syncer::RSync::Pull
- Defined in:
- lib/backup/syncer/rsync/pull.rb
Constant Summary
Constants included from CLI::Helpers
Instance Attribute Summary
Attributes inherited from Push
#compress, #ip, #password, #port, #username
Attributes inherited from Base
Attributes inherited from Base
Instance Method Summary collapse
-
#perform! ⇒ Object
Performs the RSync::Pull operation debug options: -vhP.
Methods inherited from Push
Methods inherited from Base
Methods inherited from Base
Methods included from Configuration::Helpers
#clear_defaults!, #load_defaults!
Methods included from CLI::Helpers
#command_name, #raise_if_command_failed!, #run, #utility
Constructor Details
This class inherits a constructor from Backup::Syncer::RSync::Push
Instance Method Details
#perform! ⇒ Object
Performs the RSync::Pull operation debug options: -vhP
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/backup/syncer/rsync/pull.rb', line 11 def perform! write_password_file! @directories.each do |directory| Logger.("#{ syncer_name } started syncing '#{ directory }'.") Logger.silent( run("#{ utility(:rsync) } #{ } " + "'#{ username }@#{ ip }:#{ directory.sub(/^\~\//, '') }' " + "'#{ dest_path }'") ) end ensure remove_password_file! end |