CloudAtCost
Simple Ruby Gem for the CloudAtCost API
Installation
Install gem
gem install cac
Require in ruby
require 'cac'
Usage
# 123456 = serverid
a = Cac.new(credentials[:key], credentials[:login])
# info
a.servers
a.templates
a.tasks
# actions
a.power("poweroff", 123456) # poweroff, poweron, reset
a.console(123456)
a.rename(123456, "localhost")
a.rdns(123456, "localhost.example.com")
# cloud-pro only
a.resources # lists resources
a.build(10, 1024, 500, 75) # cpu, ram, storage, templateid
a.delete(123456)
Contributing
- Fork it ( https://github.com/[my-github-username]/cac/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request