Megam Ruby Client

The Megam Ruby Client is used to interact with the Megam API from Ruby.

For more about the Megam API see http://docs.megam.co.Megam API server

Build Status

For early access register at:

Usage

Start by creating a connection to Megam with your credentials:

require 'megam_api'

megam = Megam::API.new(:headers => {:api_key => API_KEY, :email => EMAIL})

Now you can make requests to the api.

Requests

What follows is an overview of commands you can run for the client.

For additional details about any of the commands, see the API docs.

Nodes

megam.get_nodes                              # get a list of your nodes
megam.get_node(POGO)                         # get info about the node named POGO
megam.create_node('name' => POGO, 
'type' => 'rails')                           # create an nodep with a generated name and the default type
megam.delete_node(POGO)                      # delete the node named POGO

Logs

megam.get_logs('node' => POGO)               # stream logs information for POGO Node

Predefs

megam.get_predefs                             # list all predefs 
megam.get_predef('type' => rails)             # list a specific predef named 'rails'

Accounts

megam.get_accounts(email)                     # list accounts associated with email
megam.post_accounts(email, api_key)           # onboard an account

We are glad to help if you have questions, or request for new features.

twitter email

TO - DO

License

Author: Kishorekumar Neelamegam ([email protected])
Subash Sethurajan ([email protected])
Thomas Alrin ([email protected])
Copyright: Copyright (c) 2012-2013 Megam Systems.
License: Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.