class HammerCLIForemanTasks::RecurringLogic
Public Class Methods
output_fields()
click to toggle source
The list and the info command show the same set of fields. They share this base definition and both let the RecurringLogic extension format it the same way, so their output stays consistent. It is a method rather than a constant on purpose - autoload_subcommands scans the constants of this class.
# File lib/hammer_cli_foreman_tasks/recurring_logic.rb, line 9 def self.output_fields proc do field :id, _('ID') field :cron_line, _('Cron line') field :task_count, _('Task count') field :iteration, _('Iteration') field :end_time, _('End time') field :state, _('State') field :purpose, _('Purpose'), nil, hide_blank: true end end