lib/brief/server/gateway.rb in brief-1.9.4 vs lib/brief/server/gateway.rb in brief-1.9.6

- old
+ new

@@ -1,7 +1,14 @@ class Brief::Server::Gateway attr_reader :root, :briefcases + def self.start(options={}) + app = new(root: Pathname(options[:root])) + port = options.fetch(:port, 9094) + host = options.fetch(:host, '0.0.0.0') + Rack::Handler::Thin.run(app, Port: port, Host: host) + end + def initialize(options={}) @root = options.fetch(:root) @briefcases = {}.to_mash @briefcase_options = options.fetch(:briefcase_options, {}) load_briefcases