Class: PrettyAws::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pretty_aws.rb

Class Method Summary collapse

Class Method Details

.configObject



19
20
21
# File 'lib/pretty_aws.rb', line 19

def config
  @config ||= YAML.load(File.read(root.join('pretty_aws.yml')))
end

.rdsObject



22
23
24
# File 'lib/pretty_aws.rb', line 22

def rds
  @rds ||= Aws::Rds.new(config['aws_access_key'],config['aws_secret_key'])
end

.rootObject



16
17
18
# File 'lib/pretty_aws.rb', line 16

def root
  @root ||= Pathname.new(File.expand_path('~/.pretty_aws'))
end