This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Description at http://r3.iboard.cc/postings/30 | |
# | |
class Application < Thor | |
desc "restart [--worker_only]", "kill 'rake jobs:work' and 'touch tmp/restart.txt'" | |
method_options :worker_only => :boolean | |
def restart | |
kill_pid("ps x|grep 'rake jobs:work'|grep -v grep") | |
unless options[:worker_only] |
NewerOlder