Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gambol99/openstack-build
- Owner: gambol99
- License: gpl-2.0
- Created: 2014-06-10T11:15:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-10T10:31:05.000Z (about 10 years ago)
- Last Synced: 2024-04-17T15:10:31.341Z (9 months ago)
- Language: Ruby
- Size: 320 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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') ]