lib/awestruct/deploy/rsync_deploy.rb in awestruct-0.4.4 vs lib/awestruct/deploy/rsync_deploy.rb in awestruct-0.4.5
- old
+ new
@@ -5,16 +5,16 @@
module Awestruct
module Deploy
class RSyncDeploy
def initialize(site_config, deploy_config)
- @site_path = File.join( site_config.output_dir, '/' )
+ @site_path = File.join( site_config.output_dir, '/' ).gsub(/^\w:\//, '/')
@host = deploy_config['host']
@path = File.join( deploy_config['path'], '/' )
end
def run
- cmd = "rsync -r -l -i --no-p --no-g --chmod=Dg+s,ug+w --delete #{@site_path} #{@host}:#{@path}"
+ cmd = "rsync -r -l -i --no-p --no-g --chmod=Dg+sx,ug+rw --delete #{@site_path} #{@host}:#{@path}"
Open3.popen3( cmd ) do |stdin, stdout, stderr|
stdin.close
threads = []
threads << Thread.new(stdout) do |i|
while ( ! i.eof? )