lib/fulmar/infrastructure/service/transfer/rsync.rb in fulmar-1.3.0 vs lib/fulmar/infrastructure/service/transfer/rsync.rb in fulmar-1.4.0
- old
+ new
@@ -35,12 +35,12 @@
# Build the rsync command from the given options
def rsync_command
if @config[:rsync][:direction] == 'up'
from = @config[:local_path]
- to = ssh_user_and_host + ':' + @config[:remote_path]
+ to = @config.ssh_user_and_host + ':' + @config[:remote_path]
else
- from = ssh_user_and_host + ':' + @config[:remote_path]
+ from = @config.ssh_user_and_host + ':' + @config[:remote_path]
to = @config[:local_path]
end
"rsync #{rsync_command_options.join(' ')} '#{from}/' '#{to}'"
end