Class: Hanami::CLI::Server Private
- Inherits:
-
Object
- Object
- Hanami::CLI::Server
- Defined in:
- lib/hanami/cli/server.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- RACK_FALLBACK_OPTIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ host: :Host, port: :Port }.freeze
- OVERRIDING_OPTIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ config: :config, debug: :debug, warn: :warn }.freeze
Instance Attribute Summary collapse
- #rack_server ⇒ Object readonly private
Instance Method Summary collapse
- #call(**options) ⇒ Object private
-
#initialize(rack_server: Rack::Server) ⇒ Server
constructor
private
A new instance of Server.
Constructor Details
#initialize(rack_server: Rack::Server) ⇒ Server
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Server.
29 30 31 |
# File 'lib/hanami/cli/server.rb', line 29 def initialize(rack_server: Rack::Server) @rack_server = rack_server end |
Instance Attribute Details
#rack_server ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/hanami/cli/server.rb', line 10 def rack_server @rack_server end |
Instance Method Details
#call(**options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 38 39 |
# File 'lib/hanami/cli/server.rb', line 35 def call(**) rack_server.start(Hash[ () + () ]) end |