Class: Hanami::Commands::Server Private
- Defined in:
- lib/hanami/commands/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.
Server command (‘hanami server`)
Instance Method Summary collapse
-
#initialize(options) ⇒ Server
constructor
private
A new instance of Server.
- #start ⇒ Object private
Methods inherited from Command
Constructor Details
#initialize(options) ⇒ 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.
12 13 14 15 16 17 |
# File 'lib/hanami/commands/server.rb', line 12 def initialize() super() require 'hanami/server' @server = Hanami::Server.new end |
Instance Method Details
#start ⇒ 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.
19 20 21 |
# File 'lib/hanami/commands/server.rb', line 19 def start server.start end |