Sha256: 8c675a5f17508241e5d0753825e28733ae7eabfde860126eba3f0099765530d2
Contents?: true
Size: 943 Bytes
Versions: 4
Compression:
Stored size: 943 Bytes
Contents
def dns_providers { :aws => { :mocked => false }, :dnsimple => { :mocked => false }, :dnsmadeeasy => { :mocked => false }, :dynect => { :mocked => false, :zone_attributes => { :email => 'fog@example.com' } }, :linode => { :mocked => false, :zone_attributes => { :email => 'fog@example.com' } }, :rackspace => { :mocked => false, :zone_attributes => { :email => 'fog@example.com' } }, :rage4 => { :mocked => false } } end def generate_unique_domain( with_trailing_dot = false) #get time (with 1/100th of sec accuracy) #want unique domain name and if provider is fast, this can be called more than once per second time= (Time.now.to_f * 100).to_i domain = 'test-' + time.to_s + '.com' if with_trailing_dot domain+= '.' end domain end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
fog-2.3.0 | tests/dns/helper.rb |
fog-ifeel-2.2.0 | tests/dns/helper.rb |
fog-2.2.0 | tests/dns/helper.rb |
fog-2.1.0 | tests/dns/helper.rb |