Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::DigitalOcean::SshKey

Public Instance Methods

destroy() click to toggle source
# File lib/fog/digitalocean/models/compute/ssh_key.rb, line 18
def destroy
  requires :id

  service.destroy_ssh_key id
  true
end
save() click to toggle source
# File lib/fog/digitalocean/models/compute/ssh_key.rb, line 11
def save
  requires :name, :ssh_pub_key

  merge_attributes(service.create_ssh_key(name, ssh_pub_key).body['ssh_key'])
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.