Class: Moose::Inventory::Cli::Audit
- Inherits:
-
Thor
- Object
- Thor
- Moose::Inventory::Cli::Audit
- Includes:
- Helpers
- Defined in:
- lib/moose_inventory/cli/audit.rb
Overview
Audit log inspection commands.
Constant Summary
Constants included from Helpers
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/moose_inventory/cli/audit.rb', line 16 def list events = inventory_context.audit_events(limit: [:limit]).map { |event| serialize_event(event) } if [:format] fmt.dump(events, [:format].downcase) else render_human_events(events) end end |