Sha256: bd14e6970d67336486461917dc9ec926382d60b6c9d22b45d779026b79421bfa

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

module HammerCLIForeman
  class Realm < HammerCLIForeman::Command

    resource :realms

    class ListCommand < HammerCLIForeman::ListCommand
      output do
        field :id, _("Id")
        field :name, _("Name")
      end

      build_options
    end


    class InfoCommand < HammerCLIForeman::InfoCommand
      output ListCommand.output_definition do
        field :realm_proxy_id, _("Realm proxy id")
        field :realm_type, _("Realm type")
        HammerCLIForeman::References.taxonomies(self)
        HammerCLIForeman::References.timestamps(self)
      end

      build_options
    end


    class CreateCommand < HammerCLIForeman::CreateCommand
      success_message _("Realm [%{name}] created")
      failure_message _("Could not create the realm")

      build_options
    end


    class UpdateCommand < HammerCLIForeman::UpdateCommand
      success_message _("Realm [%{name}] updated")
      failure_message _("Could not update the realm")

      build_options
    end


    class DeleteCommand < HammerCLIForeman::DeleteCommand
      success_message _("Realm [%{name}] deleted")
      failure_message _("Could not delete the realm")

      build_options
    end

    autoload_subcommands
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hammer_cli_foreman-0.11.0 lib/hammer_cli_foreman/realm.rb
hammer_cli_foreman-0.10.2 lib/hammer_cli_foreman/realm.rb
hammer_cli_foreman-0.10.1 lib/hammer_cli_foreman/realm.rb
hammer_cli_foreman-0.10.0 lib/hammer_cli_foreman/realm.rb
hammer_cli_foreman-0.9.0 lib/hammer_cli_foreman/realm.rb
hammer_cli_foreman-0.8.0 lib/hammer_cli_foreman/realm.rb