Sha256: 8ac54f5f6c3c2884c283668be31a6c25796c1b67dd7ea6cb9b64ab1299cdb9bc

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

module Dorsum
  class Configuration
    CONFIG_PATH = %w(config/dorsum.yml /etc/dorsum.yml).freeze

    attr_accessor :yaml

    def initialize
      CONFIG_PATH.each do |config|
        next unless File.exist?(config)
        self.yaml = YAML.load_file(config)
      end
    end

    def databases
      yaml['databases']
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dorsum-1.0.0 lib/dorsum/configuration.rb