Class: Pwnix::Api::Client::Ssh

Inherits:
Object
  • Object
show all
Includes:
HTTParty, HTTPartyTime
Defined in:
lib/pwnix-api-client/system/ssh.rb

Instance Method Summary collapse

Methods included from HTTPartyTime

#clear_errors, #errors, #has_errors?, included, #last_error, #safe_api_call

Instance Method Details

#public_keyObject



8
9
10
# File 'lib/pwnix-api-client/system/ssh.rb', line 8

def public_key
  safe_api_call("/system/ssh/public_key")
end

#resetObject



12
13
14
# File 'lib/pwnix-api-client/system/ssh.rb', line 12

def reset
  safe_api_call("/system/ssh/reset")
end