mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-10-29 23:32:35 +01:00
17 lines
221 B
Ruby
17 lines
221 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'pathname'
|
|
|
|
# Encapsulates app configuration
|
|
module App
|
|
class << self
|
|
def env
|
|
ENV['RACK_ENV'] || 'development'
|
|
end
|
|
|
|
def root
|
|
Pathname.pwd
|
|
end
|
|
end
|
|
end
|