merb_virtuozzo

by James Thompson
http://github.com/plainprograms/merb_virtuozzo

A plugin for the Merb framework that provides integration with the virtuozzo gem.

Requirements

  • virtuozzo (~> 0.7.0)

Installation

$ sudo gem install merb_virtuozzo

Usage

Add the following line to your Merb app’s config/dependencies.rb file:

dependency "merb_virtuozzo", "~>1.0"

Run merb from the command line to have config/virtuozzo.yml.sample generated for you. Then go and copy config/virtuozzo.yml.sample to config/virtuozzo.yml. Once that is done you should modify the parameters in config/virtuozzo.yml to match authentication parameters for your Virtuozzo instance.

merb_virtuozzo automatically initiates a SOAP session when your application is started. So, to access any of the drivers available in the virtuozzo gem you can simply invoke them via Merb::Virtuozzo.connection like the following:

Merb::Virtuozzo.connection.envm.get_list(nil) # Returns list of containers.

Refer to the virtuozzo gem’s documentation for how to use each driver and its related calls.

LICENSE

(The MIT License)

Copyright © 2008 James Thompson <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.