Class: RemoteTerminal::Rsync
- Inherits:
-
Object
- Object
- RemoteTerminal::Rsync
- Defined in:
- lib/remote-terminal/rsync.rb
Instance Method Summary collapse
Instance Method Details
#run(orig, dest) ⇒ Object
3 4 5 6 7 |
# File 'lib/remote-terminal/rsync.rb', line 3 def run(orig, dest) IO.popen("rsync -raze ssh --delete #{orig} #{dest}") do |f| return "#{f.readlines.join()}" end end |