Class: Bushpig::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/bushpig/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (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.expand_path('./config/environment.rb')

  server = Bushpig.server
  server.serve(queue)
end