Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into simple
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Oct 15, 2013
2 parents 0ebd747 + 912de08 commit 15a7e2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ task :deploy => :build do
flags << %Q{"ssh -p #{port}"}
end

excludes = upload_only.collect { |e| "--exclude=#{e}" }
includes = upload_only.collect { |e| "--include=#{e}" }
excludes = upload_only.collect { |e| "--exclude='#{e}'" }

rsync = [ 'rsync', *flags, '--del', *excludes, "#{local}/", "#{user}@#{server}:#{path}" ].join(' ')
rsync_uploads = [ 'rsync', *flags, '--exclude="*"', *includes, "#{local}/", "#{user}@#{server}:#{path}" ].join(' ')
rsync_uploads = [ 'rsync', *flags, "#{local}/", "#{user}@#{server}:#{path}" ].join(' ')

p "Now running: #{rsync}"
system rsync
Expand Down

0 comments on commit 15a7e2f

Please sign in to comment.