class Servel::CLI

Constants

ALLOWED_PUMA_OPTIONS

Public Class Methods

new() click to toggle source
# File lib/servel/cli.rb, line 8
def initialize
  @config = Servel::ConfigParser.new.config
end

Public Instance Methods

start() click to toggle source
# File lib/servel/cli.rb, line 12
def start
  app = Servel.build_app(**@config.slice(:listings, :username, :password))
  Rack::Handler::Puma.run(app, **@config.slice(*ALLOWED_PUMA_OPTIONS))
end