Class: Terraspace::Dotenv
- Inherits:
-
Object
- Object
- Terraspace::Dotenv
- Defined in:
- lib/terraspace/dotenv.rb
Instance Method Summary collapse
-
#files ⇒ Object
dotenv files with the following precedence:.
- #load! ⇒ Object
Instance Method Details
#files ⇒ Object
dotenv files with the following precedence:
-
.env.dev.local - Highest precedence
-
.env.dev
-
.env.local
-
.env - Lowest precedence
16 17 18 19 20 21 22 23 |
# File 'lib/terraspace/dotenv.rb', line 16 def files [ ".env.#{Terraspace.env}.local", ".env.#{Terraspace.env}", ".env.local", ".env", ].compact end |
#load! ⇒ Object
5 6 7 |
# File 'lib/terraspace/dotenv.rb', line 5 def load! ::Dotenv.load(*files) end |