Skip to content

Instantly share code, notes, and snippets.

@rnmp
Created May 5, 2011 23:09
Show Gist options
  • Save rnmp/958164 to your computer and use it in GitHub Desktop.
Save rnmp/958164 to your computer and use it in GitHub Desktop.
:rsync Rakefile
require 'nanoc3/tasks'
user = "[email protected]"
server = "acualicio.us"
path = "/nfs/c05/h01/mnt/70722/users/.home/domains/acualicio.us/"
# message = "changed on" + Time.now.localtime.strftime("%Y-%m-%d")
task :sync do
system "rsync -vru --exclude='.DS_Store' html #{user}@#{server}:#{path}"
end
# task :commit do
# system "git add ."
# system "git commit -m '#{message}'"
# system "git push origin master"
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment