class Fog::Compute::DigitalOcean::SshKey
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/digitalocean/models/compute/ssh_key.rb, line 16 def destroy requires :id service.delete_ssh_key id end
save()
click to toggle source
# File lib/fog/digitalocean/models/compute/ssh_key.rb, line 10 def save requires :name, :public_key merge_attributes(service.create_ssh_key(name, public_key).body['ssh_key']) true end
update()
click to toggle source
# File lib/fog/digitalocean/models/compute/ssh_key.rb, line 21 def update requires :id, :name data = service.update_server(id, name) merge_attributes(data.body['ssh_key']) true end