Sha256: deb00cb5fbd46a1e315b3a510e455884ff419c81b164ed58a92172787e745cf9
Contents?: true
Size: 486 Bytes
Versions: 11
Compression:
Stored size: 486 Bytes
Contents
def dns_providers { :dynect => { :mocked => false, :zone_attributes => { :email => 'fog@example.com' } } } 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
11 entries across 9 versions & 2 rubygems