Module: Lunanode::APIActions::SshKey

Included in:
Lunanode::APIActions
Defined in:
lib/lunanode/api_actions/sshkey.rb,
lib/lunanode/api_actions/default/sshkey.rb

Instance Method Summary collapse

Instance Method Details

#sshkey_add(label:, sshkey:) ⇒ Object


6
7
8
# File 'lib/lunanode/api_actions/default/sshkey.rb', line 6

def sshkey_add(label:, sshkey:)
  action(:sshkey, :add, label: label, sshkey: sshkey)
end

#sshkey_listObject


10
11
12
# File 'lib/lunanode/api_actions/default/sshkey.rb', line 10

def sshkey_list
  action(:sshkey, :list)
end

#sshkey_remove(key_id:) ⇒ Object


14
15
16
# File 'lib/lunanode/api_actions/default/sshkey.rb', line 14

def sshkey_remove(key_id:)
  action(:sshkey, :remove, key_id: key_id)
end