Sha256: 45ca0795d7245845cff9bbdd383181634c2fcd9776985a7355d57761826234a4

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

module Pakyow
  module Configuration
    class Server
      class << self
        attr_accessor :port, :host, :handler
        
        # On what port does the application run?
        def port
          @port || 3000
        end
        
        # On what host does the application run?
        def host
          @host || '0.0.0.0'
        end
        
        # If set, adds a handler to try (e.g. puma)
        def handler
          @handler || nil
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pakyow-core-0.8rc1 pakyow-core/lib/core/configuration/server.rb