Sha256: 262d29e90fb7583fa919d6862bc54d63b608b93df88074ec036ef4ce7e96191a

Contents?: true

Size: 1.19 KB

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
hammer_cli_foreman-0.11.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.10.2 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.10.1 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.10.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.9.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.8.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.7.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.6.2 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.6.1 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.6.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.5.1 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.5.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.4.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.3.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.2.0 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.1.4 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.1.3 lib/hammer_cli_foreman/model.rb
hammer_cli_foreman-0.1.2 lib/hammer_cli_foreman/model.rb