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

  1. Fork it ( https://github.com/[my-github-username]/cac/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request