lib/awestruct/commands/deploy.rb in awestruct-0.1.4 vs lib/awestruct/commands/deploy.rb in awestruct-0.1.5

- old
+ new

@@ -9,10 +9,10 @@ @host = opts['host'] @path = File.join( opts['path'], '/' ) end def run - cmd = "rsync -rvl --delete #{@site_path} #{@host}:#{@path}" + cmd = "rsync -r -l -i --no-p --no-g --chmod=Dg+s,ug+w--delete #{@site_path} #{@host}:#{@path}" puts "running #{cmd}" Open3.popen3( cmd ) do |stdin, stdout, stderr| stdin.close threads = [] threads << Thread.new(stdout) do |i|