Sha256: 838e2afdbddfbdd42374b6d3f33643492ca44e1b56037aca2d85633e7f176dc4

Contents?: true

Size: 261 Bytes

Versions: 7

Compression:

Stored size: 261 Bytes

Contents

module Outliers
  module Credentials
    module_function

    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

7 entries across 7 versions & 1 rubygems

Version Path
outliers-0.3.3 lib/outliers/credentials.rb
outliers-0.3.2 lib/outliers/credentials.rb
outliers-0.3.1 lib/outliers/credentials.rb
outliers-0.3.0 lib/outliers/credentials.rb
outliers-0.2.0 lib/outliers/credentials.rb
outliers-0.1.1 lib/outliers/credentials.rb
outliers-0.1.0 lib/outliers/credentials.rb