Class: Terraspace::Dotenv

Inherits:
Object
  • Object
show all
Defined in:
lib/terraspace/dotenv.rb

Instance Method Summary collapse

Instance Method Details

#filesObject

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