Sha256: df5e4ae34e3f6153e3c466ea0536f691778785c528c26c59285ec4103473e282
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
module Solusvm # Solusvm::General is the class for retrieving general information. class General < Base # Lists available templates. # # Parameters: # # * +type+ - a valid virtualization type; e.g: [openvz|xen|xen hvm|kvm] def templates(type) validate_server_type!(type) perform_request(:action => 'listtemplates', :type => type) parse_returned_params_as_list('templates') end # Lists available plans. # # Parameters: # # * +type+ - a valid virtualization type; e.g: [openvz|xen|xen hvm|kvm] def plans(type) validate_server_type!(type) perform_request(:action => 'listplans', :type => type) parse_returned_params_as_list('plans') end # Lists available isos. # # Parameters: # # * +type+ - a valid virtualization type; e.g: [openvz|xen|xen hvm|kvm] def isos(type) validate_server_type!(type) perform_request(:action => 'listiso', :type => type) parse_returned_params_as_list('iso') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solusvm-1.1.0.beta2 | lib/solusvm/general.rb |
solusvm-1.1.0.beta1 | lib/solusvm/general.rb |
solusvm-1.0.0.beta3 | lib/solusvm/general.rb |