Module: LoadEnv::Loader
- Defined in:
- lib/load_env/loader.rb
Class Method Summary collapse
Class Method Details
.load ⇒ Object
5 6 7 8 9 10 |
# File 'lib/load_env/loader.rb', line 5 def self.load base_dir = Pathname.new('config') env_var_dir = base_dir.join('.env_vars') env_secrets = File.join(env_var_dir, "#{ENV['RAILS_ENV']}" || "#{ENV['RACK_ENV']}" || 'development') Dotenv.load(env_secrets) end |