class OceanCommander::Droplets

Public Instance Methods

create(name, size, image, region, ssh_keys='') click to toggle source
# File lib/ocean_commander/droplets.rb, line 8
def create(name, size, image, region, ssh_keys='')
  tp api.droplets.create(name: name, size_id: size, image_id: image, region_id: region, ssh_key_ids: ssh_keys).droplet
end
delete(id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 13
def delete(id)
  tp api.droplets.delete(id)
end
list() click to toggle source
# File lib/ocean_commander/droplets.rb, line 4
def list
  tp api.droplets.list.droplets
end
password_reset(id, image_id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 48
def password_reset(id, image_id)
  tp api.droplets.password_reset(id)
end
poweroff(id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 38
def poweroff(id)
  tp api.droplets.power_off(id)
end
poweron(id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 33
def poweron(id)
  tp api.droplets.power_on(id)
end
reboot(id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 23
def reboot(id)
  tp api.droplets.reboot(id).droplet
end
rebuild(id, image_id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 43
def rebuild(id, image_id)
  tp api.droplets.rebuild(id, image_id: image_id)
end
show(id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 18
def show(id)
  tp api.droplets.show(id).droplet
end
shutdown(id) click to toggle source
# File lib/ocean_commander/droplets.rb, line 28
def shutdown(id)
  tp api.droplets.shutdown(id)
end