Sha256: 894cb35f149c329d6a400e64c7f1c5550a932ad16b26591c45194e18fccf9bb5
Contents?: true
Size: 803 Bytes
Versions: 6
Compression:
Stored size: 803 Bytes
Contents
module Solusvm class General < Base def nodes(type) validate_server_type!(type) perform_request(:action => 'listnodes', :type => type) returned_parameters['nodes'].split(',') end def templates(type) validate_server_type!(type) perform_request(:action => 'listtemplates', :type => type) returned_parameters['templates'].split(',') end def node_statistics(nodeid) perform_request(:action => 'node-statistics', :nodeid => nodeid) returned_parameters end # List a nodes available IPs def node_available_ips(nodeid) perform_request(:action => 'node-iplist', :nodeid => nodeid) if statusmsg.match /no available ip/i [] else returned_parameters['ips'].split(',') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems