Module: Tina4::Env
- Defined in:
- lib/tina4/env.rb
Constant Summary collapse
- DEFAULT_ENV =
{ "PROJECT_NAME" => "Tina4 Ruby Project", "VERSION" => "1.0.0", "TINA4_LANGUAGE" => "en", "TINA4_DEBUG_LEVEL" => "[TINA4_LOG_ALL]", "SECRET" => "tina4-secret-change-me" }.freeze
Class Method Summary collapse
Class Method Details
.load(root_dir = Dir.pwd) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/tina4/env.rb', line 15 def load(root_dir = Dir.pwd) env_file = resolve_env_file(root_dir) unless File.exist?(env_file) create_default_env(env_file) end parse_env_file(env_file) end |