Sha256: 0462d2ce3fd86ca6c0fc0e68249ad13c9c40902111494637b5df39dd10443265
Contents?: true
Size: 787 Bytes
Versions: 56
Compression:
Stored size: 787 Bytes
Contents
module Fog module Compute class DigitalOcean class Real # # Delete a SSH public key from your account # # @see https://www.digitalocean.com/api#ssh_keys # def destroy_ssh_key(id) request( :expects => [200], :method => 'GET', :path => "ssh_keys/#{id}/destroy" ) end end class Mock def destroy_ssh_key(id) response = Excon::Response.new response.status = 200 if self.data[:ssh_keys].reject! { |k| k['id'] == id } response.body = { "status" => "OK" } else response.body = { "status" => "ERROR" } end response end end end end end
Version data entries
56 entries across 56 versions & 4 rubygems