1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

20 commits

Author SHA1 Message Date
Wesley Beary
4776992f0c Merge pull request #1807 from stormsilver/paginate_zerigo_zones
[Zerigo|DNS] Support pagination on Zerigo DNS zones
2013-05-14 15:13:59 -07:00
Eric Hankins
226a935fba Add TTL on save rather than initialize.
Move the TTL default assignment to the #save method instead of applying
it on object initialization.
2013-05-14 16:45:42 -05:00
Eric Hankins
ef3bec5ade [Zerigo|DNS] Remove default 3600 TTL
Zerigo records and zones were setting a TTL of 3600 on the model if no
TTL was set in the response. On first glance this seems like A Good
Thing - yes we want a default TTL! However, it masks the fact that a
record might have no TTL set on it and is using the default TTL from the
zone. If you're trying to use the model to determine if the TTL is set
to some value (say 3600), but the value defaults to 3600 if it isn't
set, then you have no way of knowing if it's right or not.

This change forces you to set a TTL if you're performing an operation
that requires one (#save).
2013-05-10 11:14:54 -05:00
Eric Hankins
6f8c0e6120 Support pagination on Zerigo DNS zones
For Zerigo accounts with more than 100 domains, the previous zones.all
method was unable to get to records beyond 100. This adds pagination per
the Zerigo API doc with :per_page and :page parameters. You can then use
count_zones to get the total zone count, divide by your :per_page, and
iterate over all pages to fetch all your zones.

https://www.zerigo.com/docs/apis/dns/1.1/zones/index
2013-05-09 13:57:33 -05:00
Andreas Gerauer
d954a16354 Removed Zerigo::Models::DNS::Records#find method, moved functionality to all(options)
Removed Rackspace::Models::DNS::Zones#find, moved functionality to all(options)
2013-03-13 18:01:54 +01:00
Paul Thornthwaite
a510d34982 [zerigo|dns] Updates reference to service 2013-01-07 21:01:25 +00:00
Paul Thornthwaite
40c0cd7122 Make use of #persisted? method
In many places we were checking for identity which was the shorthand for
checking if the resource had been saved by the service.

The #persisted? method was added to show a clearer intent and also offer
minimal ActiveModel interface
2012-12-23 02:45:05 +00:00
Kevin Menard
6cd10c1430 [zerigo|dns] Fixed an issue with updating a record since the response body is an empty string, not nil. 2012-01-08 21:21:56 -05:00
Wesley Beary
d614c12d69 Merge pull request #552 from mogotest/fix_zerigo_host_update
Fixed an issue whereby saving an existing record in Zerigo would nil out its value.
2011-10-09 08:54:21 -07:00
Wesley Beary
0cba13b70e Merge pull request #551 from mogotest/implement_zerigo_mocks
Implemented mocks for Zerigo.
2011-10-09 08:53:47 -07:00
Kevin Menard
9a619c07f3 Fixed an issue whereby saving an existing record in Zerigo would nil out its value. 2011-10-09 11:49:50 -04:00
Kevin Menard
38a703e3e0 Added the ability to search Zerigo records for a particular zone. 2011-10-08 22:39:40 -04:00
Kevin Menard
25562a42b4 Implemented mocks for Zerigo. 2011-10-08 20:19:32 -04:00
geemus
0763c6370a [dns|zerigo] move zerigo dns to its own shared area (namespacing should probably be corrected) 2011-08-24 14:40:47 -05:00
geemus
39b5899163 [dns] consolidate 2011-01-07 16:12:04 -08:00
geemus
e4e33af626 [dns] fixes to get all shared tests passing 2011-01-03 15:39:38 -08:00
geemus
39ed179198 [linode|dns] first pass at models 2010-12-23 16:47:47 -08:00
geemus
13e8141158 [slicehost|dns] first pass at models 2010-12-23 15:36:08 -08:00
geemus
0fd90a8fa5 [zerigo|dns] save or update models 2010-12-23 14:21:05 -08:00
geemus
a641545902 [zerigo|dns] first rough pass at models 2010-12-22 20:36:53 -08:00