Sha256: a668044cb1b77f715218961b0c81e9891ebf47ee75e7957aed82e85bfa1c18b4
Contents?: true
Size: 653 Bytes
Versions: 7
Compression:
Stored size: 653 Bytes
Contents
module Fog module Compute class DigitalOcean class SshKey < Fog::Model identity :id attribute :fingerprint attribute :public_key attribute :name def save requires :name, :public_key merge_attributes(service.create_ssh_key(name, public_key).body['ssh_key']) true end def destroy requires :id service.delete_ssh_key id end def update requires :id, :name data = service.update_server(id, name) merge_attributes(data.body['ssh_key']) true end end end end end
Version data entries
7 entries across 5 versions & 2 rubygems