Class: Gem::Release::Config::Files

Inherits:
Object
  • Object
show all
Includes:
Helper::Hash
Defined in:
lib/gem/release/config/files.rb

Constant Summary collapse

PATHS =
%w(
  ./.gem_release/config.yml
  ./.gem_release.yml
  ~/.gem_release/config.yml
  ~/.gem_release.yml
)

Constants included from Helper::Hash

Helper::Hash::MERGER

Instance Method Summary collapse

Methods included from Helper::Hash

#deep_merge, #except, #only, #symbolize_keys

Instance Method Details

#loadObject


17
18
19
20
# File 'lib/gem/release/config/files.rb', line 17

def load
  return {} unless path
  symbolize_keys(YAML.load_file(path) || {})
end