wr0ngway/rubber — pull request #116 by akremer (2012-02-06 00:54:12+00:00)
Title: Fix zerigo DNS

Resolves a couple of issues:

In lib/rubber/dns/zerigo.rb:
*) Was missing an "end" for the module
*) Had a class/module conflict since it wasn't sure if it was inheriting from Rubber's fog class or the fog gem module
*) Using wrong variable for the zerigo email/key

In lib/rubber/dns/fog.rb:
*) zone.records.find would throw a Fog::DNS::Zerigo::NotFound exception if the fqdn wasn't found. Catching it into an empty array for now, although this should probably be better addressed in Fog somehow.
*) Was initializing an empty Fog::DNS client for classes that inherit this. Since the only DNS provider in Rubber currently using Fog is Zerigo, I've removed this for now. It basically meant one always would need to add a "credentials" section in rubber-dns.yml under every provider inheriting from Fog, even though each DNS provider in Fog has its own names for credentials.

Still need to update the comments in rubber-dns.yml to reflect this.