class Bow::Ssh::Rsync
Public Class Methods
new(ssh_helper)
click to toggle source
# File lib/bow/ssh/rsync.rb, line 6 def initialize(ssh_helper) @ssh_helper = ssh_helper end
Public Instance Methods
call(source, target)
click to toggle source
# File lib/bow/ssh/rsync.rb, line 10 def call(source, target) @ssh_helper.run(cmd_rsync(source, target)) end
cmd_rsync(source, target)
click to toggle source
# File lib/bow/ssh/rsync.rb, line 14 def cmd_rsync(source, target) format( 'rsync --timeout=10 --force -r %s %s:%s', source, @ssh_helper.conn, target ) end