class Fog::Compute::StormOnDemand::Server
Attributes
password[W]
Public Class Methods
new(attributes={})
click to toggle source
Calls superclass method
# File lib/fog/storm_on_demand/models/compute/server.rb, line 30 def initialize(attributes={}) super end
Public Instance Methods
clone(options)
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 50 def clone(options) requires :identity service.clone_server({:uniq_id => identity}.merge!(options)) true end
destroy()
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 34 def destroy requires :identity service.delete_server(:uniq_id => identity) true end
history(options={})
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 62 def history(options={}) requires :identity params = {:uniq_id => identity}.merge!(options) res = service.server_history(params).body res['items'] end
ready?()
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 40 def ready? active == 1 end
reboot(options={})
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 44 def reboot(options={}) requires :identity service.reboot_server({:uniq_id => identity}.merge!(options)) true end
resize(options)
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 56 def resize(options) requires :identity service.resize_server({:uniq_id => identity}.merge!(options)) true end
shutdown(options={})
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 69 def shutdown(options={}) requires :identity service.shutdown_server({:uniq_id => identity}.merge!(options)).body end
start()
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 74 def start reqwuires :identity service.start_server({:uniq_id => identity}).body end
status()
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 79 def status requires :identity service.server_status({:uniq_id => identity}).body end
update(options)
click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 84 def update(options) requires :identity service.update_server({:uniq_id => identity}.merge!(options)).body end