Sha256: e18ea927dbdd89faa9e1752ff85d454ad871ed5dcb6f883003c91e01c2992b04

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

require 'hanami/commands/command'

module Hanami
  # @api private
  module Commands
    # Server command (`hanami server`)
    #
    # @since 0.1.0
    # @api private
    class Server < Command
      requires 'code_reloading'

      # @api private
      def initialize(options)
        super(options)

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

      # @api private
      def start
        server.start
      end

      protected

      # @api private
      attr_reader :server
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-1.0.0 lib/hanami/commands/server.rb
hanami-1.0.0.rc1 lib/hanami/commands/server.rb
hanami-1.0.0.beta3 lib/hanami/commands/server.rb