Class: RubyEventStore::Browser::App
- Inherits:
-
Sinatra::Application
- Object
- Sinatra::Application
- RubyEventStore::Browser::App
- Defined in:
- lib/ruby_event_store/browser/app.rb
Class Method Summary collapse
Class Method Details
.for(event_store_locator:, host: nil, path: nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ruby_event_store/browser/app.rb', line 7 def self.for(event_store_locator:, host: nil, path: nil) self.tap do |app| app.settings.instance_exec do set :event_store_locator, event_store_locator set :host, host set :root_path, path set :environment, :production set :public_folder, "#{__dir__}/../../../public" end end end |