Top Level Namespace
Defined Under Namespace
Modules: Capistrano
Instance Method Summary collapse
Instance Method Details
#rsync(host) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/rsyncinator/built-in.rb', line 5 def rsync(host) execute( "rsync", "-ah", fetch(:rsync_options), fetch(:rsync_excludes), "--rsh", "\"ssh", "-o", "PasswordAuthentication=no", "-o", "StrictHostKeyChecking=no\"", "--log-file", fetch(:rsync_log_file), "#{fetch(:rsync_user)}@#{fetch(:rsync_from_host)}:#{fetch(:rsync_source)}", fetch(:rsync_destination) ) end |
#rsync_log_run(host) ⇒ Object
14 15 16 |
# File 'lib/rsyncinator/built-in.rb', line 14 def rsync_log_run(host) capture("tac #{fetch(:rsync_log_file)} | grep 'receiving file list' -B100000 -m1 | tac") end |
#rsync_log_tail(host) ⇒ Object
18 19 20 |
# File 'lib/rsyncinator/built-in.rb', line 18 def rsync_log_tail(host) capture "tail", "-n", fetch(:rsync_tail_lines), fetch(:rsync_log_file) end |