Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 24 lines (18 sloc) 0.495 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SETTINGS = {
  :rsync_server => 'timeago.yarp.com:/var/www/timeago/',
  :rsync_options => '-e ssh -avz --delete --exclude=.git'
}

verbose(true)

task :default => :test

desc 'Publish "marketing" docs'
task :publish do
  sh("git rebase master gh-pages")
  sh("git checkout master")
  sh("git push")
  sh("git push --tags")

  sh("rsync #{SETTINGS[:rsync_options]} ./ #{SETTINGS[:rsync_server]}")
end

desc 'Open your default browser with the test page'
task :test do
  sh("open test.html")
end
Something went wrong with that request. Please try again.