Sha256: d4728c1ea355e7948ec8bccd576fb7010b5e0762ce21bb7666318fdf51209b27

Contents?: true

Size: 542 Bytes

Versions: 43

Compression:

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

43 entries across 41 versions & 6 rubygems

Version Path
fog-2.3.0 tests/dreamhost/helper.rb
fog-ifeel-2.2.0 tests/dreamhost/helper.rb
fog-2.2.0 tests/dreamhost/helper.rb
fog-2.1.0 tests/dreamhost/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/dreamhost/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/dreamhost/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/dreamhost/helper.rb
fog-1.42.1 tests/dreamhost/helper.rb
fog-2.0.0 tests/dreamhost/helper.rb
fog-1.42.0 tests/dreamhost/helper.rb
fog-1.41.0 tests/dreamhost/helper.rb
fog-1.40.0 tests/dreamhost/helper.rb
fog-1.39.0 tests/dreamhost/helper.rb
fog-1.38.0 tests/dreamhost/helper.rb
fog-1.37.0 tests/dreamhost/helper.rb
fog-1.36.0 tests/dreamhost/helper.rb
fog-1.35.0 tests/dreamhost/helper.rb
fog-2.0.0.pre.0 tests/dreamhost/helper.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/dreamhost/helper.rb
fog-1.34.0 tests/dreamhost/helper.rb