Class: Killbill::Plugin::RackHandler::KillBillOptions

Inherits:
Rack::Server::Options
  • Object
show all
Defined in:
lib/killbill/http_servlet.rb

Overview

A bit convoluted but the Rack API doesn’t seem to let you configure these things out of the command line

Instance Method Summary collapse

Instance Method Details

#default_optionsObject



20
21
22
23
24
25
# File 'lib/killbill/http_servlet.rb', line 20

def default_options
  {
      # Make sure plugins are started in production mode by default
      :environment => :production
  }
end

#parse!(args) ⇒ Object



16
17
18
# File 'lib/killbill/http_servlet.rb', line 16

def parse!(args)
  super.merge(default_options)
end