Class: AWS

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

Class Method Summary collapse

Class Method Details

.keyObject



11
12
13
# File 'lib/active_record_to_simpledb.rb', line 11

def self.key
  AWS.root[RAILS_ENV]['access_key_id']
end

.rootObject



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

.secretObject



15
16
17
# File 'lib/active_record_to_simpledb.rb', line 15

def self.secret
  AWS.root[RAILS_ENV]['secret_access_key']
end