class AwsRds::Config

Public Class Methods

new(path=" click to toggle source
# File lib/aws_rds/config.rb, line 5
def initialize(path="#{AwsRds.root}/config/#{AwsRds.env}.yml")
  @path = path
end

Public Instance Methods

settings() click to toggle source
# File lib/aws_rds/config.rb, line 9
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