Sha256: 435de0092e23985b5bdb526e02f8bf13dfec0b74e3f35deefde42c50ddc881d9

Contents?: true

Size: 929 Bytes

Versions: 3

Compression:

Stored size: 929 Bytes

Contents

module HammerCLIForemanTasks
  class RecurringLogic < HammerCLIForeman::Command
    resource :recurring_logics

    class ListCommand < HammerCLIForeman::ListCommand
      output do
        field :id, _('ID')
        field :cron_line, _('Cron line')
        field :end_time, _('End time')
        field :iteration, _('Iteration')
        field :state, _('State')
      end

      build_options
    end

    class InfoCommand < HammerCLIForeman::InfoCommand
      output ListCommand.output_definition
      build_options
    end

    class CancelCommand < HammerCLIForeman::DeleteCommand
      action :cancel
      command_name 'cancel'
      success_message _('Recurring logic cancelled.')
      failure_message _('Could not cancel the recurring logic.')
      build_options
    end

    autoload_subcommands
  end

  HammerCLI::MainCommand.subcommand 'recurring-logic', _('Recurring logic related actions.'), RecurringLogic
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hammer_cli_foreman_tasks-0.0.12 lib/hammer_cli_foreman_tasks/recurring_logic.rb
hammer_cli_foreman_tasks-0.0.11 lib/hammer_cli_foreman_tasks/recurring_logic.rb
hammer_cli_foreman_tasks-0.0.10 lib/hammer_cli_foreman_tasks/recurring_logic.rb