Top Level Namespace

Defined Under Namespace

Classes: ServerStatusApp, ServerStatusClient, ServerStatusConfig

Constant Summary collapse

LIB_ROOT =
File.expand_path File.dirname(__FILE__)
GEM_ROOT =
File.expand_path '..', LIB_ROOT
STATIC_ROOT =
File.expand_path 'public', GEM_ROOT
VIEW_ROOT =
File.expand_path 'views', GEM_ROOT

Instance Method Summary collapse

Instance Method Details

#set_config(file_name) ⇒ Object



16
17
18
19
# File 'lib/server_status.rb', line 16

def set_config file_name
  ServerStatusConfig.source File.expand_path file_name
  ServerStatusApp.set :port, ServerStatusConfig.port
end