Sha256: 56cca1ce1d7d7ba668e00694bb9a47205290861e0aa4d6f0e4b81de6fe0aa69c
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
module DNSimpleHelpers def setup_dnsimple_credentials config_file = File.expand_path('~/.dnsimple') unless File.exists? config_file File.open(config_file, "w") do |file| file << <<-EOS.gsub(/^\s{8}/, '') username: ossgrants+dnsimple@engineyard.com password: dnsimple1 site: https://test.dnsimple.com/ EOS end end require "dnsimple" DNSimple::Client.load_credentials(config_file) end def create_dnsimple_domain(domain) begin ::DNSimple::Commands::DeleteDomain.new.execute([domain]) rescue => e $stderr.puts e.message end ::DNSimple::Commands::CreateDomain.new.execute([domain]) end end World(DNSimpleHelpers)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engineyard-dnsimple-0.3.0 | features/support/dnsimple.rb |