command lines tools that take advantage of the slicehost API
Ruby
Pull request Compare This branch is 14 commits ahead, 12 commits behind marcboquet:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
.gitignore
LICENSE
README.markdown
Rakefile
slicehost-tools.gemspec

README.markdown

slicehost-tools

Manage Slicehost Slices and DNS records/zones from the command line.

WARNING

I am not responsible if this eats your data or destroys your life. YOU HAVE BEEN WARNED.

Installation

The slicehost api require an old activeresource library, this worked for me:

gem install activeresource -v 2.1.1 

Usage

slicehost-dns

add [DOMAIN] [IP]                  add a domain for the given ip
google_apps [DOMAIN] [IP]          configure Google Apps for the given domain (new or existing)
add_a [DOMAIN] [NAME] [IP]         add a A record to an existing domain
add_assets [DOMAIN] [IP]           add a 4 assets hosts (assets0..assets3) to an existing domain
add_cname [DOMAIN] [NAME] [CNAME]  add a CNAME record to an existing domain
list                               lists all zones and their associated records
delete [DOMAIN]                    removes a domain
apikey [APIKEY]                    set your Slicehost API Key and save it to ~/.slicehost-tools
to_zonefile [DOMAIN]               output a zone file for the given domain
help [TASK]                        describe available tasks or one specific task

slicehost-slice

add [SLICE NAME] [--force]         add a new slice
delete [SLICE]                     delete a slice
list                               list slices
hard_reboot [SLICE]                perform a hard reboot
soft_reboot [SLICE]                perform a soft reboot
apikey [APIKEY]                    set your Slicehost API Key and save it to ~/.slicehost-tools
help [TASK]                        describe available tasks or one specific task

Contributing

Feel free to fork and send pull requests via github.