Module: WorldDB::Service

Defined in:
lib/worlddb/service/version.rb,
lib/worlddb/service/server.rb,
lib/worlddb/service.rb

Defined Under Namespace

Classes: Server

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details



24
25
26
# File 'lib/worlddb/service.rb', line 24

def self.banner
  "worlddb-service #{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] on Sinatra/#{Sinatra::VERSION} (#{ENV['RACK_ENV']})"
end

.rootObject

fix: move to WorldDB



29
30
31
# File 'lib/worlddb/service.rb', line 29

def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end