Sha256: dfbcfebf59866df6f45f716170144d8d37e7fd948ea1da427a1d147f0f35be22

Contents?: true

Size: 1.19 KB

Versions: 50

Compression:

Stored size: 1.19 KB

Contents

module HammerCLIForeman

  class Model < HammerCLIForeman::Command

    resource :models

    class ListCommand < HammerCLIForeman::ListCommand

      output do
        field :id, _("Id")
        field :name, _("Name")
        field :vendor_class, _("Vendor class")
        field :hardware_model, _("HW model")
      end

      build_options
    end


    class InfoCommand < HammerCLIForeman::InfoCommand
      output ListCommand.output_definition do
        field :info, _("Info")
        HammerCLIForeman::References.timestamps(self)
      end

      build_options
    end


    class CreateCommand < HammerCLIForeman::CreateCommand
      success_message _("Hardware model created.")
      failure_message _("Could not create the hardware model")

      build_options
    end

    class DeleteCommand < HammerCLIForeman::DeleteCommand
      success_message _("Hardware model deleted.")
      failure_message _("Could not delete the hardware model")

      build_options
    end


    class UpdateCommand < HammerCLIForeman::UpdateCommand
      success_message _("Hardware model updated.")
      failure_message _("Could not update the hardware model")

      build_options
    end


    autoload_subcommands
  end

end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
hammer_cli_foreman-3.14.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.13.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.12.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.10.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.9.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.8.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.7.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.5.1 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.6.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.5.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.4.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.3.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.2.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.1.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-3.0.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-2.3.2 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-2.3.1 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-2.3.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-2.1.3 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-2.2.0 lib/hammer_cli_foreman/model.rb