jpriddle

/oss / FannyPack

FannyPack

May 2011 · Source ·
API Fantastico Git Rspec Ruby RubyGems

FannyPack is a Ruby library for working with the Fantastico API.

FannyPack has been tested on MRI 1.9.3, 2.0.0, 2.1.2, and 1.9-compatible JRuby.

Installation

gem install fanny_pack

Usage

Set your Fantastico accountHASH

FannyPack.account_hash = '0mgpwn13s'

Add an IP

FannyPack::IP.add '127.0.0.1'

Add a VPS IP

FannyPack::IP.add '127.0.0.1', :vps

Edit an IP (127.0.0.1 is the current IP, 127.0.0.2 is the new IP)

FannyPack::IP.edit '127.0.0.1', '127.0.0.2'

Deactivate an IP

FannyPack::IP.deactivate '127.0.0.1'

Reactivate an IP

FannyPack::IP.reactivate '127.0.0.1'

Delete an IP

FannyPack::IP.delete '127.0.0.1'

List all IPs

FannyPack::IP.list :all

List only ‘normal’ IPs

FannyPack::IP.list :normal

List only VPS IPs

FannyPack::IP.list :vps

Include details when listing IPs:

FannyPack::IP.list :all, true

Get an IP’s details

FannyPack::IP.details '127.0.0.1'

Note on Patches/Pull Requests

License

MIT License - see LICENSE in this repo.