Simple Ruby gem to access Exoscale's API
Add this line to your application's Gemfile:
gem 'exoscale'
And then execute:
$ bundle
Or install it yourself as:
$ gem install exoscale
All methods are described on Exoscale's Compute documentation. As this is a Ruby gem, all methods are snake_cased.
require 'exoscale'
exo = Exoscale::Compute.new(ENV['EXO_API_KEY'], ENV['EXO_API_SECRET_KEY'])
puts exo.list_zones
puts exo.list_virtual_machines
require 'exoscale'
exo = Exoscale::Compute.new(ENV['EXO_API_KEY'], ENV['EXO_API_SECRET_KEY'])
puts exo.list_domains
puts exo.create_domain('example.com')
puts exo.create_record('example.com', 'www', 'A', '1.2.3.4')
To do...
After checking out the repo, run bin/setup
to install dependencies. Then, run rake test
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Bug reports and pull requests are welcome on GitHub at https://github.com/nicolasbrechet/ruby-exoscale. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.