mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-27 09:45:38 -05:00
23 lines
495 B
Ruby
23 lines
495 B
Ruby
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
|