require 'rake' require 'rake/clean' Dir['tasks/**/*.rake'].each { |rake| load rake } CLEAN.include %w[ **/*.o **/*.hi Main.exe* **/*.pid **/*.sock **/*.fcgi ] desc "refresh" task :r do #{}`ghc --make src/Main.hs -o public/example.fcgi -threaded` `kibro refresh` `kibro stop` kill :fcgi kill :lighttpd `kibro start` end desc "kill" task :kill do kill :fcgi kill :lighttpd end def kill(that) `ps -A | grep #{that} | awk '{print $1}' | xargs kill -9` end