Sha256: a644322bba668e219c2a2349ca4a289ff35fd3d5ff54c56b1e84816ebc605765

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

class Servel::CLI
  ALLOWED_PUMA_OPTIONS = [
    :Host,
    :Port,
    :binds
  ]

  def initialize
    @config = Servel::ConfigParser.new.config
  end

  def start
    app = Servel.build_app(**@config.slice(:listings, :username, :password))
    Rack::Handler::Puma.run(app, **@config.slice(*ALLOWED_PUMA_OPTIONS))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
servel-0.33.0 lib/servel/cli.rb