Class: Hanami::Commands::Server Private

Inherits:
Command
  • Object
show all
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`)

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Command

inherited

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

Since:

  • 0.1.0


12
13
14
15
16
17
# File 'lib/hanami/commands/server.rb', line 12

def initialize(options)
  super(options)

  require 'hanami/server'
  @server = Hanami::Server.new
end

Instance Method Details

#startObject

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.

Since:

  • 0.1.0


19
20
21
# File 'lib/hanami/commands/server.rb', line 19

def start
  server.start
end