Sha256: 9160d3c6fe1b7c0ef8362d3c5d2ab0e92c6686171fb5329a1c92ae3bab3fa161

Contents?: true

Size: 1.27 KB

Versions: 49

Compression:

Stored size: 1.27 KB

Contents

module HammerCLIForeman

  class Architecture < HammerCLIForeman::Command

    resource :architectures

    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
        HammerCLIForeman::References.operating_systems(self)
        HammerCLIForeman::References.taxonomies(self)
        HammerCLIForeman::References.timestamps(self)
      end

      build_options
    end


    class CreateCommand < HammerCLIForeman::CreateCommand
      success_message _("Architecture created.")
      failure_message _("Could not create the architecture")

      build_options
    end


    class DeleteCommand < HammerCLIForeman::DeleteCommand
      success_message _("Architecture deleted.")
      failure_message _("Could not delete the architecture")

      build_options
    end


    class UpdateCommand < HammerCLIForeman::UpdateCommand
      success_message _("Architecture updated.")
      failure_message _("Could not update the architecture")

      build_options
    end

    HammerCLIForeman::AssociatingCommands::OperatingSystem.extend_command(self)

    autoload_subcommands
  end

end

Version data entries

49 entries across 49 versions & 1 rubygems

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