# File lib/hiera/backend/eyaml/subcommand.rb, line 36 def self.load_config_file config = {} [ "/etc/eyaml/config.yaml", "#{ENV['HOME']}/.eyaml/config.yaml", "#{ENV['EYAML_CONFIG']}" ].each do |config_file| begin yaml_contents = YAML.load_file(config_file) LoggingHelper::info "Loaded config from #{config_file}" config.merge! yaml_contents rescue raise StandardError, "Could not open config file \"#{config_file}\" for reading" end if config_file and File.file? config_file end config end