-
-
Save deadkarma/5d9eeaf004ecde7ea07c to your computer and use it in GitHub Desktop.
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
require 'zeus/rails' | |
class CustomPlan < Zeus::Rails | |
def sidekiq | |
# Based on bin/sidekiq | |
require 'sidekiq/cli' | |
begin | |
cli = Sidekiq::CLI.instance | |
cli.parse | |
cli.run | |
rescue => e | |
raise e if $DEBUG | |
STDERR.puts e.message | |
STDERR.puts e.backtrace.join("\n") | |
exit 1 | |
end | |
end | |
end | |
Zeus.plan = CustomPlan.new |
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
{ | |
"command": "ruby -rubygems -r./custom_plan -eZeus.go", | |
"plan": { | |
"boot": { | |
"default_bundle": { | |
"development_environment": { | |
"prerake": {"rake": []}, | |
"runner": ["r"], | |
"console": ["c"], | |
"server": ["s"], | |
"sidekiq": [], | |
"generate": ["g"], | |
"destroy": ["d"], | |
"dbconsole": [] | |
}, | |
"test_environment": { | |
"test_helper": {"test": ["rspec", "testrb"]} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment