Sha256: 8b9a8fc963a7ff716e98cbc9df6016695a3fdf266543df925b506c86c2d1f8a1
Contents?: true
Size: 626 Bytes
Versions: 3
Compression:
Stored size: 626 Bytes
Contents
task :server do livereload = fork { exec "livereload" } server = fork { exec 'unicorn' } trap('INT') do Process.kill('QUIT', server) Process.kill('QUIT', livereload) end Process.waitall end task :default => :server task :dev do unless $LOAD_PATH.last =~ /gitdoc$/ abort "Run rake with the path to GitDocs's source to use dev mode\n"+ "Eg. rake -I ~/Projects/gitdoc dev" end livereload = fork { exec "livereload" } server = fork { exec "shotgun -I #{$LOAD_PATH.last}" } trap('INT') do Process.kill('QUIT', server) Process.kill('QUIT', livereload) end Process.waitall end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gitdoc-4.0.0 | gitdoc/tasks.rb |
gitdoc-3.13.0 | gitdoc/tasks.rb |
gitdoc-3.10.0 | gitdoc/tasks.rb |