mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 04:22:28 +01:00
23 lines
310 B
Ruby
23 lines
310 B
Ruby
require 'logger'
|
|
require 'pathname'
|
|
|
|
module App
|
|
class << self
|
|
attr_reader :logger
|
|
|
|
def env
|
|
ENV['RACK_ENV'] || 'development'
|
|
end
|
|
|
|
def root
|
|
Pathname.pwd
|
|
end
|
|
|
|
def version
|
|
`git rev-parse --short HEAD 2>/dev/null`.strip!
|
|
end
|
|
end
|
|
|
|
@logger = Logger.new(STDOUT)
|
|
end
|