Sha256: 8bcbcb4f7a937bc787e44f2befa118fc162e23e1c184255667c7828434346e8f

Contents?: true

Size: 1.37 KB

Versions: 18

Compression:

Stored size: 1.37 KB

Contents

module HammerCLIForeman

  class Medium < HammerCLIForeman::Command

    resource :media

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

      build_options
    end


    class InfoCommand < HammerCLIForeman::InfoCommand
      output ListCommand.output_definition do
        field :os_family, _("OS Family")
        HammerCLIForeman::References.operating_systems(self)
        HammerCLIForeman::References.taxonomies(self)
        HammerCLIForeman::References.timestamps(self)
      end

      build_options
    end


    class CreateCommand < HammerCLIForeman::CreateCommand

      success_message _("Installation medium created")
      failure_message _("Could not create the installation medium")

      build_options

    end


    class UpdateCommand < HammerCLIForeman::UpdateCommand
      success_message _("Installation medium updated")
      failure_message _("Could not update the installation media")

      build_options

    end


    class DeleteCommand < HammerCLIForeman::DeleteCommand
      success_message _("Installation medium deleted")
      failure_message _("Could not delete the installation media")

      build_options
    end


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

    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/media.rb
hammer_cli_foreman-0.10.2 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.10.1 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.10.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.9.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.8.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.7.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.6.2 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.6.1 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.6.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.5.1 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.5.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.4.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.3.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.2.0 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.1.4 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.1.3 lib/hammer_cli_foreman/media.rb
hammer_cli_foreman-0.1.2 lib/hammer_cli_foreman/media.rb