Class: Pwnix::Api::Client::Logs
- Inherits:
-
Object
- Object
- Pwnix::Api::Client::Logs
show all
- Includes:
- HTTParty, HTTPartyTime
- Defined in:
- lib/pwnix-api-client/system/logs.rb
Instance Method Summary
collapse
#clear_errors, #errors, #has_errors?, included, #last_error, #safe_api_call
Instance Method Details
#contents(name) ⇒ Object
20
21
22
|
# File 'lib/pwnix-api-client/system/logs.rb', line 20
def contents(name)
safe_api_call("/system/logs/contents", { :log_name => name } )
end
|
#head(name) ⇒ Object
16
17
18
|
# File 'lib/pwnix-api-client/system/logs.rb', line 16
def head(name)
safe_api_call("/system/logs/head", { :log_name => name } )
end
|
#list ⇒ Object
8
9
10
|
# File 'lib/pwnix-api-client/system/logs.rb', line 8
def list
safe_api_call("/system/logs/list")
end
|
#tail(name) ⇒ Object
12
13
14
|
# File 'lib/pwnix-api-client/system/logs.rb', line 12
def tail(name)
safe_api_call("/system/logs/tail", { :log_name => name } )
end
|