Sha256: b4dde9be5257e15d2dcdad56006b3895bace591f0f8ab0a3e0da033f4cf44fc4
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
class Rimu::Servers < Rimu def create(params) send_request("/r/orders/new-vps", "about_order", "POST", params) end def info(oid) send_request("/r/orders/order-#{oid}-dn/vps", "running_vps_info") end def cancel(oid) send_request("/r/orders/order-#{oid}-dn/vps", "cancel_messages", "DELETE") end def move(oid, params) send_request("/r/orders/order-#{oid}-dn/vps/host-server", "about_order", "PUT", params) end def resize(oid) send_request("/r/orders/order-#{oid}-dn/vps/parameters", "resource_change_result", "PUT", params) end def reinstall(oid) send_request("/r/orders/order-#{oid}-dn/vps/reinstall", "running_vps_info", "PUT", params) end def reboot(oid, params) send_request("/r/orders/order-#{oid}-dn/vps/running-state", "running_vps_info", "PUT", params) end def shutdown(oid, params) send_request("/r/orders/order-#{oid}-dn/vps/running-state", "running_vps_info", "PUT", params) end def start(oid, params) send_request("/r/orders/order-#{oid}-dn/vps/running-state", "running_vps_info", "PUT", params) end def power_cycle(oid, params) send_request("/r/orders/order-#{oid}-dn/vps/running-state", "running_vps_info", "PUT", params) end def data_transfer(oid) send_request("/r/orders/order-#{oid}-dn/vps/data-transfer-usage", "data_transfer_usage_info") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rimu-0.0.1 | lib/rimu/servers.rb |