Project

rightstuff

0.0
No commit activity in last 3 years
No release in over 3 years
Another Ruby Interface for RightScale, providing an OO interface for RightScale accounts
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 1.4.3.1
 Project Readme

rightstuff - Another Ruby Interface for RightScale¶ ↑

Here is a typical example:

require 'rubygems' if RUBY_VERSION < '1.9'
require 'rightstuff'

include Rightstuff::Credentials

rs = Rightstuff::Client.new( rightscale_data[ :main ][ :credentials ] )
servers = rs.servers
servers.each{ |server| puts server.private_ip_address }

server_arrays = rs.server_arrays
servers.each{ |array| puts("Array #{array.nickname} is running #{array.active_instances_count || 0} instances.") }

active_array = server_arrays.detect{|array| array.active_instances_count.to_i > 0}
array_instances = active_array.instances
puts("Array #{active_array.nickname}'s private IP address[es]: #{array_instances.map(&:private_ip_address) * ', '}")

Rightstuff::Credentials assumes you have a YAMl file called ~/.rightstuff It should be of the form:

---
:main:
  :credentials:
    :username: myusername
    :password: mypass
    :account:  1234

Installation¶ ↑

$ sudo gem install rightstuff

Online¶ ↑

Alternatives¶ ↑

Contributors¶ ↑

  • joeyates

  • kwerle

TODO¶ ↑

  • Cache connections