class Ettin::ConfigFiles

The configuration files for a given root and environment

Public Class Methods

for(root:, env:) click to toggle source

@param root [String|Pathname] @param env [String] @return [Array<Pathname>]

# 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