Class: PrettyAws::Base

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

Class Method Summary collapse

Class Method Details

.configObject



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

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

.rdsObject



24
25
26
# File 'lib/pretty_aws.rb', line 24

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

.rootObject



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

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