class Dotenv::Beefy::Railtie
Public Instance Methods
environments()
click to toggle source
# File lib/dotenv/beefy/railtie.rb, line 15 def environments [ 'local', Rails.env, host_family ] end
host_family()
click to toggle source
# File lib/dotenv/beefy/railtie.rb, line 23 def host_family case ::RbConfig::CONFIG['host_os'] when /(darwin|mac os)/i 'darwin' when /(linux|bsd|aix|solaris)/i 'nix' when /cygwin/i 'cygwin' end end
load_environments()
click to toggle source
# File lib/dotenv/beefy/railtie.rb, line 9 def load_environments files = environments.map { |env| ".env.#{env}" } files << '.env' Dotenv.load(*files) end