Module: Nephos

Defined in:
lib/nephos-server/params.rb,
lib/nephos-server/cookies.rb,
lib/nephos-server/version.rb,
lib/nephos-server/controller.rb,
lib/nephos-server/bin-helpers.rb,
lib/nephos-server/router/load.rb,
lib/nephos-server/router/main.rb,
lib/nephos-server/server/main.rb,
lib/nephos-server/server/logger.rb,
lib/nephos-server/server/responder.rb

Defined Under Namespace

Modules: Bin, Logger Classes: Controller, Cookies, Params, Responder, Router, Server

Constant Summary collapse

VERSION_FILE =
__FILE__.split("/")[0..-4].join("/") + "/version"
VERSION =
File.read(VERSION_FILE).strip
@@env =
$server_env

Class Method Summary collapse

Class Method Details

.envObject



7
8
9
# File 'lib/nephos-server/version.rb', line 7

def self.env
  @@env
end

.env=(env) ⇒ Object



11
12
13
# File 'lib/nephos-server/version.rb', line 11

def self.env= env
  @@env = env
end

.log(*what) ⇒ Object



19
20
21
# File 'lib/nephos-server/server/logger.rb', line 19

def self.log *what
  Logger.write what
end