Pete Michaud

Talk mathy to me, baby

Fork Pete Michaud on GitHub

DigitalOcean API Gem

September 11th, 2013

As part of my attempt to make setting up Jekyll sites bonehead easy for myself, I wanted to make the script smart enough to actually set up the DNS records for a new site without any human intervention.

I could just hit the DigitalOcean API raw, but that’s ugly and not maintainable, and I’m not a big fan of chlamydia.

Part of the problem is that the only gem that encapsulates the DigitalOcean API is incomplete.

But not so much any more. I wrote some new functionality, enabling fiddling with Domains and DNS Records via the provided objects.

Now all I need to do to finish my script is get the github edge for that gem, and use my new changes to intelligently set up the records I need.

It’s almost like I know what I’m doing!