Paul Thornthwaite
ec8b940b2c
Standardise on collection methods
...
Done with `rubocop --auto-correct --only CollectionMethods`
2014-05-26 16:22:07 +01:00
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
Peter Drake
17dbaa35f9
Record and Zone put requests are idempotent.
2013-12-30 08:37:30 -05:00
Wesley Beary
550a39119a
Merge pull request #2164 from shawncatz/dynect_missing_record_data
...
fix missing record data in dynect dns
2013-09-26 13:30:39 -07:00
Josh Blancett
ec7908a740
fixed doc info
2013-09-25 14:48:56 -04:00
Josh Blancett
dfe0043405
added support for both update and replace for dynect put_record request
2013-09-25 14:46:12 -04:00
Josh Blancett
a8defa9a74
added put_record for dynect
2013-09-24 14:28:36 -04:00
Shawn Catanzarite
20fbbf9ee0
add get_node_list request again, add test for get_all_records request
2013-09-23 11:38:59 -07:00
Shawn Catanzarite
caabdff6d4
fix missing record data in dynect dns
...
currently, when fog requests all records:
* make a NodeList request
returns a list of nodes (domains)
* for each domain, make a secondary AnyRecord request for each domain
returns a list of records (without data)
The resulting Record objects do not contain the data of where the record points (address or cname). 'rdata' is nil
I've changed the process to be:
* make an AllRecord request
returns a list of records (without data)
* make a secondary request to *Record (using the type returned from the AllRecord request)
this returns a *complete* record object (including data)
The number of requests to Dynect API is the same, but the resulting objects contain all of the information.
TODO:
* Please help me integrate with fog testing
* I had to remove (comment) the API Version header, not sure what the correct value for this is
** Dynect documentation is a bit difficult to work through
2013-09-21 12:23:05 -07:00
Dylan Egan
a57bea24ff
Idempotent Dynect calls. ✌️
2012-05-28 16:20:29 +02:00
Kevin Menard
dcefc2d7de
Fixed #875 : Loosen multi_json version.
2012-04-25 10:31:28 -04:00
Steve Smith
d89dd56fe7
Use MultiJSON #dump and #load rather than #encode and #decode
...
MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
2012-04-20 13:09:14 +01:00
Dan Peterson
8e9b86f42a
[dynect|dns] Pass zone.records.all options through to get_node_list.
...
This is useful for the `:fqdn` option:
```
zone.records.all(:fqdn => "foo.bar.com") #=> only records under foo.bar.com
```
2012-01-30 11:39:15 -04:00
Dylan Egan
76be4bc54c
[dynect|dns] always ensure it's an integer.
2011-09-04 09:36:34 -07:00
Dylan Egan
d301caaa09
[dynect|dns] find, not first.
2011-09-04 09:34:38 -07:00
Dylan Egan
d02adbd6f2
[dynect|dns] support ANY record results.
2011-09-01 16:11:14 -07:00
Dylan Egan
3cb55c46ac
[dynect|dns] accidentally hardcoded the record type in the mocked data.
2011-09-01 16:00:08 -07:00
Dylan Egan
886fb5a6d3
[dynect|dns] return the zone name.
2011-09-01 15:41:38 -07:00
Dylan Egan
11161fe388
Fog::DNS::Dynect, not Fog::Dynect::DNS.
2011-09-01 15:03:36 -07:00
Dylan Egan
c8afffc516
raise a NotFound if not found.
2011-09-01 15:01:25 -07:00
Dylan Egan
3900846820
Support freeze and thaw.
2011-08-30 10:01:22 -07:00
Dylan Egan
18c672f194
Tidy up a bit.
2011-08-30 10:01:22 -07:00
Dylan Egan
a9fdddbc1b
get_record, single.
2011-08-30 10:01:22 -07:00
Dylan Egan
c685a08c77
Beginning of Dynect::DNS mocking support.
2011-08-30 10:01:22 -07:00
geemus
96c117c580
[dns|dynect] move dynect dns to its own shared area (namespacing should probably be corrected)
2011-08-24 19:52:11 -05:00