Class: Pvectl::Commands::Logs::Handlers::TaskDetail
- Inherits:
-
Object
- Object
- Pvectl::Commands::Logs::Handlers::TaskDetail
- Includes:
- ResourceHandler
- Defined in:
- lib/pvectl/commands/logs/handlers/task_detail.rb
Overview
Handler for task log drill-down by UPID.
Fetches individual task log lines from the Proxmox API. Extracts the node name from the UPID for API routing.
Instance Method Summary collapse
-
#initialize(repository: nil) ⇒ TaskDetail
constructor
A new instance of TaskDetail.
- #list(upid:, start: 0, limit: 512, **_) ⇒ Object
- #presenter ⇒ Object
Constructor Details
#initialize(repository: nil) ⇒ TaskDetail
Returns a new instance of TaskDetail.
22 23 24 |
# File 'lib/pvectl/commands/logs/handlers/task_detail.rb', line 22 def initialize(repository: nil) @repository = repository end |
Instance Method Details
#list(upid:, start: 0, limit: 512, **_) ⇒ Object
26 27 28 |
# File 'lib/pvectl/commands/logs/handlers/task_detail.rb', line 26 def list(upid:, start: 0, limit: 512, **_) repository.list(upid: upid, start: start, limit: limit) end |
#presenter ⇒ Object
30 31 32 |
# File 'lib/pvectl/commands/logs/handlers/task_detail.rb', line 30 def presenter Presenters::TaskLogLine.new end |