FannyPack is a Ruby library for working with the Fantastico API.
FannyPack has been tested on MRI 1.8.7, MRI 1.9.2, MRI 1.9.3, Rubinius, and JRuby (in 1.8 and 1.9 mode).
gem install fanny_pack
Set your Fantastico
FannyPack.account_hash = '0mgpwn13s'
Add an IP
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
Reactivate an IP
Delete an IP
List all IPs
List only 'normal' IPs
List only VPS IPs
Include details when listing IPs:
FannyPack::IP.list :all, true
Get an IP's details
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (If you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Copyright (c) 2012 Site5.com. See LICENSE for details.