Sha256: ce6365a4f2a789431b011c6d0971e6620f496288d8d628ad609ca57d226cfb82
Contents?: true
Size: 688 Bytes
Versions: 1
Compression:
Stored size: 688 Bytes
Contents
module Outliers module Credentials module_function # To Do - Remove me once validated not needed def load_from_config_folder credentials = {} files = Dir.entries(File.join(Outliers.config_path, 'credentials')) - ['.', '..'] files.each do |file| contents = File.read File.join(Outliers.config_path, 'credentials', file) YAML.load(contents).each_pair do |k,v| credentials[k] = v end end credentials end def load_from_file(file) credentials = {} contents = File.read file YAML.load(contents).each_pair do |k,v| credentials[k] = v end credentials end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
outliers-0.0.1 | lib/outliers/credentials.rb |