class Guinness::Application
Attributes
builder[RW]
settings[RW]
Public Class Methods
new(options = {})
click to toggle source
# File lib/guinness/application.rb, line 5 def initialize(options = {}) @settings = { output_dir: '../' }.merge options app = self @builder = Rack::Builder.new do |builder| use Rack::CommonLogger use Rack::ShowStatus # Nice looking 404s and other messages use Rack::ShowExceptions # Nice looking errors use Rack::Static, :urls => ["/stylesheets", "/javascripts", "/images"] run Guinness::Server.new app end end
Public Instance Methods
serve()
click to toggle source
# File lib/guinness/application.rb, line 18 def serve Rack::Handler::Thin.run @builder, Port: 9393 end