Created
August 14, 2012 22:31
-
-
Save nicholaskuechler/3353575 to your computer and use it in GitHub Desktop.
slicehost - add a new zone via api with ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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