module Envoker::Rack
Public Class Methods
environment()
click to toggle source
# File lib/envoker/rack.rb, line 12 def self.environment ENV.fetch("RACK_ENV", "development") end
load(file = ".env")
click to toggle source
# File lib/envoker/rack.rb, line 7 def self.load(file = ".env") Envoker.load(file) Envoker.overload(format("%s.%s", file, environment)) end