Class: Backup::Syncer::RSync::Pull

Inherits:
Push show all
Defined in:
lib/backup/syncer/rsync/pull.rb

Instance Attribute Summary

Attributes inherited from Push

#additional_ssh_options, #compress, #host, #mode, #port, #rsync_password, #rsync_password_file, #rsync_user, #ssh_user

Attributes inherited from Base

#additional_rsync_options, #archive

Attributes inherited from Base

#excludes, #mirror, #path, #syncer_id

Instance Method Summary collapse

Methods inherited from Push

#initialize

Methods inherited from Base

#initialize

Methods inherited from Base

#add, #directories, #exclude, #initialize

Methods included from Config::Helpers

included

Methods included from Utilities::Helpers

#utility_remote

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::Config::Helpers

Instance Method Details

#perform!Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/backup/syncer/rsync/pull.rb', line 8

def perform!
  log!(:started)
  write_password_file!

  create_dest_path!
  run("#{ rsync_command } #{ host_options }#{ paths_to_pull } " +
      "'#{ dest_path }'")

  log!(:finished)
ensure
  remove_password_file!
end