Socket
Book a DemoInstallSign in
Socket

oceanarium

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oceanarium

bundlerRubygems
Version
1.1.1
Version published
Maintainers
2
Created
Source

Oceanarium - Use Digital Ocean API in your Ruby applications!

Digital Ocean is good SSD cloud hosting and we love it. So, we wrote this gem for the great justice :) It will help your Ruby/Rails application communicate with Digital Ocean's API.

Warning: We're not affiliated with Digital Ocean, so we can't guarantee that API, used by this gem, still valid. If you experiencing errors, just ping us (and Digital Ocean).

Installation

Add this line to your application's Gemfile:

gem 'oceanarium'

And then execute:

$ bundle

Or install it yourself as:

$ gem install oceanarium

Usage

DigitalOcean uses for authentication two keys: API key and Client ID. Before any action you must provide it to current ruby process. In command line you must enter this:

Oceanarium::Config.api_key = "your_api_key"
Oceanarium::Config.client_id = "your_client_id"

Now you're ready to use Digital Ocean API. If you using Oceanarium with Rails, you must add file config/initializers/oceanarium.rb with same two lines, as above.

After this, you can use any Digital Ocean API with this gem. All API callers are mnemonic, so you don't need to remember anything -- official Digital Ocean API will be your friend.

For example:

Oceanarium::droplet(100500)

will return you all droplet information, and

Oceanarium::droplet(100500).reboot

will reboot it.

And so on, and so on, and so on, and... read the official gem documentation at http://oceanarium.so for more verbose help.

Contributing

  • Fork it
  • 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 new Pull Request

License

See LICENSE.txt.

Copyright 2013 Valdos Sine, Delta-Zet LLC

FAQs

Package last updated on 23 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts