Sha256: 74690710e950fb4ed25d77d289e62576280273bd51176a5c87c320c92bb4bc20

Contents?: true

Size: 543 Bytes

Versions: 61

Compression:

Stored size: 543 Bytes

Contents

def test_domain
  'fog-dream.com'
end

def do_not_delete_record 
  "do-not-delete.#{test_domain}"
end

## Cleanup
# We need to have at least one record defined for the Dreamhost DNS api to work
# or you will get a no_such_zone runtime error
# The first record needs to be created using the Dreamhost Web panel AFAIK
#
def cleanup_records
  Fog::DNS[:dreamhost].records.each do |r|
    # Do not delete the 'do-not-delete' record, we need it for the tests
    r.destroy if r.name =~ /#{test_domain}/ and r.name != do_not_delete_record
  end
end

Version data entries

61 entries across 61 versions & 6 rubygems

Version Path
fog-1.22.0 tests/dreamhost/helper.rb
fog-1.21.0 tests/dreamhost/helper.rb
fog-maestrodev-1.20.0.20140305101839 tests/dreamhost/helper.rb
fog-maestrodev-1.20.0.20140305101305 tests/dreamhost/helper.rb
fog-maestrodev-1.19.0.20140212012611 tests/dreamhost/helper.rb
fog-1.20.0 tests/dreamhost/helper.rb
fog-maestrodev-1.19.0.20140110004459 tests/dreamhost/helper.rb
fog-maestrodev-1.19.0.20140110003812 tests/dreamhost/helper.rb
fog-maestrodev-1.19.0.20140109202555 tests/dreamhost/helper.rb
fog-maestrodev-1.19.0.20140107192102 tests/dreamhost/helper.rb
fog-maestrodev-1.19.0.20140107142106 tests/dreamhost/helper.rb
fog-maestrodev-1.19.0.20131219203941 tests/dreamhost/helper.rb
fog-maestrodev-1.18.0.20131219193542 tests/dreamhost/helper.rb
fog-1.19.0 tests/dreamhost/helper.rb
fog-maestrodev-1.18.0.20131219033443 tests/dreamhost/helper.rb
fog-maestrodev-1.18.0.20131219032002 tests/dreamhost/helper.rb
fog-maestrodev-1.18.0.20131219030716 tests/dreamhost/helper.rb
fog-maestrodev-1.18.0.20131219022322 tests/dreamhost/helper.rb
fog-maestrodev-1.18.0.20131218202447 tests/dreamhost/helper.rb
fog-maestrodev-1.18.0.20131209091424 tests/dreamhost/helper.rb