Module: EasyCreds::ConfigLoader
- Defined in:
- lib/easy_creds/config.rb
Constant Summary collapse
- CONFIG_FILE =
'config/1password.yml'- DEFAULTS =
SyncConfig.new( vault: nil, credentials_item: 'credentials', default_env: 'development', ignore_keys: [] ).freeze
Class Method Summary collapse
Class Method Details
.load(root) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/easy_creds/config.rb', line 24 def self.load(root) path = Pathname.new(root).join(CONFIG_FILE) return DEFAULTS unless path.exist? build_config(YAML.safe_load(path.read, symbolize_names: true) || {}) end |