Sha256: c2f72392106e50e6dd7f403d4df04b170a44dd706ec1fc2c8ab870ec08399900

Contents?: true

Size: 922 Bytes

Versions: 3

Compression:

Stored size: 922 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

3 entries across 3 versions & 1 rubygems

Version Path
cloudwow-not_relational-0.1.11 test/utils/whack_domains.rb
cloudwow-not_relational-0.1.8 test/utils/whack_domains.rb
cloudwow-not_relational-0.1.9 test/utils/whack_domains.rb