Skip to content

Instantly share code, notes, and snippets.

@nicholaskuechler
Created August 14, 2012 22:31
Show Gist options
  • Save nicholaskuechler/3353575 to your computer and use it in GitHub Desktop.
Save nicholaskuechler/3353575 to your computer and use it in GitHub Desktop.
slicehost - add a new zone via api with ruby
require 'activeresource'
API_PASSWORD = 'API_KEY_HERE'
class Zone < ActiveResource::Base
self.site = "https://#{API_PASSWORD}@api.slicehost.com/"
end
zone = Zone.new(:origin => 'myexample483727329784397.com', :ttl => 3000)
zone.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment