Module: Pvectl::Commands::Logs::ResourceHandler Abstract
- Included in:
- Handlers::Journal, Handlers::Syslog, Handlers::TaskDetail, Handlers::TaskLogs
- Defined in:
- lib/pvectl/commands/logs/resource_handler.rb
Overview
This module is abstract.
Include in handler class and implement required methods.
Interface module for Logs command handlers.
Each handler fetches log data from a specific source (task list, syslog, journal, or task detail) and returns an appropriate presenter.
Instance Method Summary collapse
-
#list(**options) ⇒ Array<Object>
Lists log entries with filtering options.
-
#presenter ⇒ Presenters::Base
Returns the presenter for this log type.
Instance Method Details
#list(**options) ⇒ Array<Object>
Lists log entries with filtering options.
32 33 34 |
# File 'lib/pvectl/commands/logs/resource_handler.rb', line 32 def list(**) raise NotImplementedError, "#{self.class}#list must be implemented" end |
#presenter ⇒ Presenters::Base
Returns the presenter for this log type.
40 41 42 |
# File 'lib/pvectl/commands/logs/resource_handler.rb', line 40 def presenter raise NotImplementedError, "#{self.class}#presenter must be implemented" end |