# File lib/nanoc/extra/deployers/rsync.rb, line 33 def run require 'systemu' # Get params src = self.source_path + '/' dst = self.config[:dst] options = self.config[:options] || DEFAULT_OPTIONS # Validate raise 'No dst found in deployment configuration' if dst.nil? raise 'dst requires no trailing slash' if dst[-1,1] == '/' # Run if dry_run warn 'Performing a dry-run; no actions will actually be performed' run_shell_cmd([ 'echo', 'rsync', options, src, dst ].flatten) else run_shell_cmd([ 'rsync', options, src, dst ].flatten) end end