class OceanCommander::SshKeys

Public Instance Methods

add(name,ssh_pub_key=nil) click to toggle source
# File lib/ocean_commander/ssh_keys.rb, line 14
def add(name,ssh_pub_key=nil)
  tp api.ssh_keys.add(name: name, ssh_pub_key: ssh_pub_key).ssh_key
end
destroy(id) click to toggle source
# File lib/ocean_commander/ssh_keys.rb, line 24
def destroy(id)
  tp api.ssh_keys.delete(id).ssh_key
end
edit(id, ssh_pub_key=nil) click to toggle source
# File lib/ocean_commander/ssh_keys.rb, line 19
def edit(id, ssh_pub_key=nil)
  tp api.ssh_keys.edit(id, ssh_pub_key: ssh_pub_key).ssh_key
end
list() click to toggle source
# File lib/ocean_commander/ssh_keys.rb, line 4
def list
  tp api.ssh_keys.list.ssh_keys
end
show(id=nil) click to toggle source
# File lib/ocean_commander/ssh_keys.rb, line 9
def show(id=nil)
  tp api.ssh_keys.show(id).ssh_key
end