frankfurter/config/app.rb
2015-03-09 14:56:52 +00:00

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