0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple gem to work with simplestack project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Simplestack ruby client

A simple gem made to provide a nice syntax when working with Simplestack project.

How to use it

First of all add the gem to your Gemfile:

gem "simple_stack", "~> 1.0"

Now that you have the Simplestack namespace available, get a simplestack class:

stack = SimpleStack::Connection.new :url => url, :username => username, :password => password

and connect to hypervisor:

xen = stack.connect_to("xen", :host => host, :username => username, :password => password)

Pool informations:

xen.info
xen.guests

Working with Guests

Main operations:

guest = xen.guests.find(uuid)
guest.info
guest.update(:name => "Guest name", :memory => 512)
guest.delete

Shutdown and power on and reboot

guest.stop
guest.start
guest.reboot

Force the guest shutdown

guest.force_stop

Resume and suspend guests

guest.resume
guest.pause

Snapshots

List snapshots

guest.snapshots

Find a snapshot

guest.snapshots.find(snap.uuid)

Create a new snapshot

snap = guest.snapshots.create :name => :snapshot_name

Delete a snapshot

snap.delete

Revert a snapshot

snap.use

Authors