Class: PrettyAws::Base
- Inherits:
-
Object
- Object
- PrettyAws::Base
- Defined in:
- lib/pretty_aws.rb
Class Method Summary collapse
Class Method Details
.config ⇒ Object
21 22 23 |
# File 'lib/pretty_aws.rb', line 21 def config @config ||= YAML.load(File.read(root.join('pretty_aws.yml'))) end |
.rds ⇒ Object
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 |
.root ⇒ Object
18 19 20 |
# File 'lib/pretty_aws.rb', line 18 def root @root ||= Pathname.new(File.('~/.pretty_aws')) end |