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

13 commits

Author SHA1 Message Date
Paul Thornthwaite
2e0b7e545a Standardise empty lines throughout codebase
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
2014-05-26 14:20:02 +01: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
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
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
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