aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Svensson <johan@atomicplayboy.net>2012-12-09 19:04:41 +0100
committerJohan Svensson <johan@atomicplayboy.net>2012-12-09 19:04:41 +0100
commit916b87a5457e68514c95a1e5f8a0eff324bed9e8 (patch)
tree3ac3c61a14fb6a4636ed255a72a5f57dd740afc1
parent2b67270f960563c55dd6c66495517bccc4f7fb17 (diff)
downloadmy_new_personal_website-916b87a5457e68514c95a1e5f8a0eff324bed9e8.tar.xz
my_new_personal_website-916b87a5457e68514c95a1e5f8a0eff324bed9e8.zip
Rakefile option for any additional rsync arguments
Added variable `rsync_args`
Diffstat (limited to '')
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 3addaaf2..55bb57b8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -8,6 +8,7 @@ ssh_user = "user@domain.com"
ssh_port = "22"
document_root = "~/website.com/"
rsync_delete = false
+rsync_args = "" # Any extra arguments to pass to rsync
deploy_default = "rsync"
# This will be configured for you when you run config_deploy
@@ -237,7 +238,7 @@ task :rsync do
exclude = "--exclude-from '#{File.expand_path('./rsync-exclude')}'"
end
puts "## Deploying website via Rsync"
- ok_failed system("rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}")
+ ok_failed system("rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{rsync_args} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}")
end
desc "deploy public directory to github pages"