Sha256: 51e267949c9defb018257bd4bc7308306c9065dde8309318a6258a27d27563cf
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
class Guinness::Application attr_accessor :settings, :builder 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 def serve Rack::Handler::Thin.run @builder, Port: 9393 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guinness-0.1.0 | lib/guinness/application.rb |