Sha256: c0a5a8f172e51adcaf8ffaaabe368e04ab3e4167d3f98607c1c2f406e18ca173
Contents?: true
Size: 859 Bytes
Versions: 12
Compression:
Stored size: 859 Bytes
Contents
require 'fog' module Stackster class AWS class SimpleDB def initialize(args) c = args[:config] @connect = Fog::AWS::SimpleDB.new :aws_access_key_id => c.access_key, :aws_secret_access_key => c.secret_key, :region => c.region end def domains @connect.list_domains.body['Domains'] end def create_domain(domain) @connect.create_domain(domain) unless domains.include? domain end def put_attributes(domain, key, attributes, options) @connect.put_attributes domain, key, attributes, options end def select(query) @connect.select(query).body['Items'] end def delete(domain, key) @connect.delete_attributes domain, key end end end end
Version data entries
12 entries across 12 versions & 1 rubygems