Class: AWS
- Inherits:
-
Object
- Object
- AWS
- Defined in:
- lib/active_record_to_simpledb.rb
Class Method Summary collapse
Class Method Details
.key ⇒ Object
11 12 13 |
# File 'lib/active_record_to_simpledb.rb', line 11 def self.key AWS.root[RAILS_ENV]['access_key_id'] end |
.root ⇒ Object
6 7 8 9 |
# File 'lib/active_record_to_simpledb.rb', line 6 def self.root rails_root = (Rails.version < "2.1.2") ? RAILS_ROOT : Rails.root YAML::load(IO.read(File.join(rails_root, 'config', 'aws.yml'))) end |