Sha256: b0e1f2f9f826446f2343390502f08d75a53b6d03c312edbf875ca456edd8d7ca

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

#coding: utf-8

# require 'json'
# require 'yaml'
require 'open-uri'
require 'rack'

require_relative 'responder'
require_relative '../routing/execute'

module Nephos
  class Server

    SERVER = lambda {|env| return Route.execute(env)}

    def initialize port
      @port = port
    end

    def start
      Rack::Server.start :app => SERVER, :Port => @port
    end

    def self.start port
      Server.new(port).start
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nephos-server-0.1.2 lib/nephos-server/server/main.rb
nephos-server-0.1.1 lib/nephos-server/server/main.rb
nephos-server-0.1 lib/nephos-server/server/main.rb