lib/blavosync/recipes/content_rsync.rb in blavosync-0.5.0 vs lib/blavosync/recipes/content_rsync.rb in blavosync-0.5.1

- old
+ new

@@ -13,11 +13,13 @@ remote_domain = fetch(:rsync_domain) end if exists?(:user) remote_user = fetch(:user) end - - system("rsync -avz -e ssh '#{[remote_user, remote_domain].join("@")}:#{content_path}' '#{rails_root}/tmp/'") + if exists?(:port) + remote_port = "-p #{fetch(:user)}" + end + system("rsync -avz -e 'ssh #{remote_port}' '#{[remote_user, remote_domain].join("@")}:#{content_path}' '#{rails_root}/tmp/'") end desc <<-DESC Creates a symlink to public/system from tmp/system DESC \ No newline at end of file