About RestConnection

RestConnection is a Ruby Net::HTTP helper for restful requests and includes an additional library of helpers for various APIs such as RightScale.

Installation

There are several methods to install RestConnection. Users of a unix-like system on their desktop such as OS X or Linux will find the software is easy to install and can be used from a terminal emulator. Instructions for RightScale Windows Servers are also found below.

Installing from the RubyGem

UNIX-like systems

gem install rest_connection --no-rdoc --no-ri

RightScale Windows Server

From Command Prompt or Powershell, you can use the following to install RestConneciton into the RightLink sandbox:

Installing from source

Installing with a RightScript

For RightScale Linux servers, import Install & configure RestConnection from the MultiCloud Marketplace for use as a boot, operational or any script. Several inputs are provided for to enter your RightScale user credentials (no extra configuration below required).

Installing with RightScale/EC2 API Toolbox

Installing with RightScale Windows Dev Server

For Windows users, the RightScale Windows Dev Server RL 5.7 ServerTemplate will stand up a Windows 2008 R2 server with Ruby 1.9.2, DevKit and the rest_connection RubyGem installed. Please note that the ServerTemplate only installs the gem and the configuration items detailed below will still need to be applied accordingly.

Configuration

Create user profile directory

Create the rest_connection configuration profile directory in your user home directory, or globally in /etc/rest_connection. Ensure the permissions are secure. For EC2 instances this will usually reside in /root/.rest_connection.