Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gambol99/openstack-build

A wrapper for Fog openstack - was used to provide a number of helper functions and methods
https://github.com/gambol99/openstack-build

Last synced: 25 days ago
JSON representation

A wrapper for Fog openstack - was used to provide a number of helper functions and methods

Awesome Lists containing this project

README

        

Openstack Build
---------------------

Is a library which wraps the fog.io openstack driver; used ease working with openstack - effectively the library contains shorthand / helper methods

---------

Example Use:
---------

options = {
:username => 'admin',
:tenant => 'admin',
:api_key => 'something',
:auth_url => 'http://horizon.domain.com:5000/v2.0/tokens'
}
stack = OpenstackBuild.new( options )
puts "networks: " << stack.networks.join(', ')
puts "instances: " << stack.servers.join(', ')
puts "images: " << stack.images.join(', ')
instance = stack.servers.first
puts "instance: %s exists: %s" % [ instance, stack.exists?( instance ) ]
puts "instance: noname, exists: %s" % [ stack.exists?( 'noname') ]