mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
19 lines
224 B
Ruby
19 lines
224 B
Ruby
|
require 'logger'
|
||
|
require 'pathname'
|
||
|
|
||
|
module App
|
||
|
class << self
|
||
|
attr :logger
|
||
|
|
||
|
def env
|
||
|
ENV['RACK_ENV'] || 'development'
|
||
|
end
|
||
|
|
||
|
def root
|
||
|
Pathname.pwd
|
||
|
end
|
||
|
end
|
||
|
|
||
|
@logger = Logger.new(STDOUT)
|
||
|
end
|