Sha256: b3777304305085fd4de5bcc5634dcf96b4a2862aa0a41681fbc428ad283d968a

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

require 'yaml'

module AwsRds
  class Config
    def initialize(path="#{AwsRds.root}/config/#{AwsRds.env}.yml")
      @path = path
    end

    def settings
      YAML.load_file(@path)
    rescue Errno::ENOENT => e
      puts e.message
      puts "The #{@path} does not exist. Please double check that it exists."
      exit
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aws-rds-0.6.0 lib/aws_rds/config.rb
aws-rds-0.5.0 lib/aws_rds/config.rb
aws-rds-0.4.0 lib/aws_rds/config.rb
aws-rds-0.3.0 lib/aws_rds/config.rb
aws-rds-0.2.0 lib/aws_rds/config.rb
aws-rds-0.1.2 lib/aws_rds/config.rb
aws-rds-0.1.1 lib/aws_rds/config.rb
aws-rds-0.1.0 lib/aws_rds/config.rb