Sha256: 7c401abe4ffadbbc47b71eddfc98a08da383159f6c3746a9bb62e68504a4d722
Contents?: true
Size: 396 Bytes
Versions: 9
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true require 'forwardable' require 'yaml' module Credentials class <<self extend Forwardable include Enumerable attr_reader :all def_delegators :all, :each end %w[mws.yml mws.yml.example].each do |path| file = File.expand_path("../#{path}", __FILE__) if File.exist?(file) @all = YAML.load_file(file) break end end end
Version data entries
9 entries across 9 versions & 1 rubygems