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
#add, #directories, #initialize
Methods included from Configuration::Helpers
Constructor Details
This class inherits a constructor from Backup::Syncer::RSync::Push
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Configuration::Helpers
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 |
# File 'lib/backup/syncer/rsync/pull.rb', line 11 def perform! write_password_file! @directories.each do |directory| Logger.("#{ syncer_name } started syncing '#{ directory }'.") run("#{ utility(:rsync) } #{ } " + "'#{ username }@#{ ip }:#{ directory.sub(/^\~\//, '') }' " + "'#{ dest_path }'") end ensure remove_password_file! end |