class Fog::Compute::StormOnDemand::Server

Attributes

password[W]
username[W]

Public Class Methods

new(attributes={}) click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 31
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 60
def clone(options)
  requires :identity
  connection.clone_server({:uniq_id => identity}.merge!(options))
  true
end
create(options) click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 35
def create(options)
  data = connection.create_server(options).body['servers']
  load(data)
end
destroy() click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 40
def destroy
  requires :identity
  connection.delete_server(:uniq_id => identity)
  true
end
ready?() click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 46
def ready?
  active == 1
end
reboot() click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 50
def reboot
  requires :identity
  connection.reboot_server(:uniq_id => identity)
  true
end
resize(options) click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 65
def resize(options)
  requires :identity
  connection.resize_server({:uniq_id => identity}.merge!(options))
  true
end
username() click to toggle source
# File lib/fog/storm_on_demand/models/compute/server.rb, line 56
def username
  @username ||= 'root'
end