Module: Rbfs::Rsync
- Included in:
- Host
- Defined in:
- lib/rbfs/rsync.rb
Instance Method Summary collapse
Instance Method Details
#sync(config) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/rbfs/rsync.rb', line 3 def sync(config) command = "rsync -ave ssh --delete #{config[:root]} #{ip}:#{config[:root]}" command += " -n" if config[:dry] result = `#{command}` puts result if config[:verbose] end |