Created
July 20, 2011 13:31
-
-
Save abstractj/1094954 to your computer and use it in GitHub Desktop.
TorqueBoxCommand
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
class TorqueBoxCommand < Thor | |
TASK_ORDER = %w(deploy undeploy start cli env help) | |
map "run" => "start" | |
method_options :clustered => :boolean | |
desc "run", "Run TorqueBox" | |
def start | |
setup_environment | |
options.clustered ? TorqueBox::DeployUtils.run_server_clustered : TorqueBox::DeployUtils.run_server | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment