Sha256: ac6fa250e8aaecf6e208444abe496cacd4b8ace8b433c3f1ca49c9f7a0929c46
Contents?: true
Size: 921 Bytes
Versions: 1
Compression:
Stored size: 921 Bytes
Contents
$KCODE = 'u' require "aws_sdb" log = Logger.new(STDOUT) log.level = Logger::ERROR path="#{File.dirname(__FILE__) }/../../config/database.yml" puts path devpay_config = YAML.load(File.open(path)) #dev_config = devpay_config['development'] test_config = devpay_config['testing_not_relational'] #prod_config = devpay_config['production'] #$sdb=AwsSdb::Service.new(nil,test_config['aws_key_id'],test_config['aws_secret_key'],"http://sdb.amazonaws.com") $sdb=AwsSdb::Service.new( :access_key_id=>test_config['aws_key_id'], :secret_access_key=>test_config['aws_secret_key'], :url=>"http://sdb.amazonaws.com", :logger=>log) def delete_domain(domain_name) $sdb.delete_domain(domain_name) end def create_domain(domain_name) $sdb.create_domain(domain_name) end delete_domain(test_config['base_domain_name']) create_domain(test_config['base_domain_name'])
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudwow-not_relational-0.1.7 | test/utils/whack_domains.rb |