Sha256: cfa67d6504a349db6724c92754034fedad4bb5d4f0c3960387b42abab4545200
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
= Solusvm Solusvm allows for easy interaction with the SolusVM Admin::API. This library was first created for internal use at {Site5 LLC}[http://www.site5.com]. == Basic Examples Solusvm.config('api_id', 'api_password', :url => 'http://www.example.com/api') server = Solusvm::Server.new # 200 is the id of the virtual server server.shutdown(200) # => true server.boot(200) # => true server.reboot(200) # => true server.suspend(200) # => true server.resume(200) # => true == Server creation options = {:type => 'xen', :username => 'bob', :node => 'node1', :plan => 'plan1', :template => 'mytpl', :ips => 1} result = sever.create('server.hostname.com', 'password', options} p server.successful? => true p result => {"mainipaddress"=>"127.0.0.1", "consoleuser"=>"console-user", "vserverid"=>"10", "statusmsg"=>"Virtual server created", "virtid"=>"vm10", "consolepassword"=>"myPassisL33t", "extraipaddress"=>{}, "hostname"=>"server.hostname", "rootpassword"=>"password", "status"=>"success"} == REQUIREMENTS: * xml-simple == INSTALL: * gem install solusvm == Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. == Copyright Copyright (c) 2010 Site5. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solusvm-0.4.0 | README.rdoc |