Method: PubDriver::Pub#rsync_it

Defined in:
lib/it_tools/pub_driver.rb

#rsync_it(ops) ⇒ Object



92
93
94
95
96
97
98
# File 'lib/it_tools/pub_driver.rb', line 92

def rsync_it ops
  command = "rsync -avP --stats #{ops[:from_dir]} "
  command += "#{ops[:as_user]}@" if ops[:as_user]
  command += "#{ops[:to_host]}:#{ops[:to_dir]} "
  p "[command]: " + command
  system command
end