Sha256: 7a448f1a5096e7e87d4558b30e459929a28fb548047beafbb592226c6a78747c

Contents?: true

Size: 768 Bytes

Versions: 4

Compression:

Stored size: 768 Bytes

Contents

module HammerCLIForeman

  class MailNotification < HammerCLIForeman::Command
    resource :mail_notifications

    class ListCommand < HammerCLIForeman::ListCommand

      output do
        field :id, _("Id")
        field :name, _("Name")
      end

      build_options expand: { except: %i[organizations locations] }, without: %i[organization_id location_id]
    end

    class InfoCommand < HammerCLIForeman::InfoCommand
      output do
        field :id, _("Id")
        field :name, _("Name")
        field :description, _("Description")
        field :subscription_type, _("Subscription type")
      end

      build_options expand: { except: %i[organizations locations] }, without: %i[organization_id location_id]
    end

    autoload_subcommands
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hammer_cli_foreman-2.5.2 lib/hammer_cli_foreman/mail_notification.rb
hammer_cli_foreman-2.5.1 lib/hammer_cli_foreman/mail_notification.rb
hammer_cli_foreman-2.5.0 lib/hammer_cli_foreman/mail_notification.rb
hammer_cli_foreman-2.4.0 lib/hammer_cli_foreman/mail_notification.rb