class Fog::Compute::DigitalOcean::SshKey

Public Instance Methods

destroy() click to toggle source
# File lib/fog/digitalocean/models/compute/ssh_key.rb, line 17
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 10
def save
  requires :name, :ssh_pub_key

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