Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.735 kb
LIVERELOAD_VERSION = '1.2.2'
GEM_SRC = FileList["server/lib/*.rb", "server/*.gemspec", "server/bin/*"]
GEM_DIST = "server/livereload-#{LIVERELOAD_VERSION}.gem"
namespace :gem do
file GEM_DIST => GEM_SRC do
cd 'server' do
sh 'gem', 'build', 'livereload.gemspec'
end
end
desc "Build the livereload gem"
task :build => GEM_DIST
desc "Install the livereload gem/command"
task :install => :build do
sh 'sudo', 'gem', 'install', GEM_DIST
end
desc "Uninstall the livereload gem/command"
task :uninstall do
sh 'sudo', 'gem', 'uninstall', 'livereload'
end
desc "Publish the gem on gemcutter"
task :publish => :build do
sh 'gem', 'push', GEM_DIST
end
end
Jump to Line
Something went wrong with that request. Please try again.