Class: Bushpig::CLI
- Inherits:
-
Thor
- Object
- Thor
- Bushpig::CLI
- Defined in:
- lib/bushpig/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
9 10 11 |
# File 'lib/bushpig/cli.rb', line 9 def self.exit_on_failure? true end |
Instance Method Details
#serve(queue) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/bushpig/cli.rb', line 14 def serve(queue) require 'rails' require File.('./config/environment.rb') server = Bushpig.server server.serve(queue) end |