Class: Ettin::ConfigFiles

Inherits:
Object
  • Object
show all
Defined in:
lib/ettin/config_files.rb

Overview

The configuration files for a given root and environment

Class Method Summary collapse

Class Method Details

.for(root:, env:) ⇒ Array<Pathname>


13
14
15
16
17
18
19
20
21
22
23
# File 'lib/ettin/config_files.rb', line 13

def self.for(root:, env:)
  root = Pathname.new(root)
  [
    root/"settings.yml",
    root/"settings"/"#{env}.yml",
    root/"environments"/"#{env}.yml",
    root/"settings.local.yml",
    root/"settings"/"#{env}.local.yml",
    root/"environments"/"#{env}.local.yml"
  ]
end