Sha256: 0aad5427f15f04c3f4d5b8e415aa015a93dfcce05369fce4a6d282c557a2dde7

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

module HammerCLIForeman

    class HttpProxy < HammerCLIForeman::Command

      resource :http_proxies

      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 :username, _("Username")
          field :url, _("URL")
        end

        build_options
      end

      class CreateCommand < HammerCLIForeman::CreateCommand
        success_message _("Http proxy created.")
        failure_message _("Could not create the http proxy")

        build_options
      end

      class DeleteCommand < HammerCLIForeman::DeleteCommand
        success_message _("Http proxy deleted.")
        failure_message _("Could not delete the http proxy")

        build_options
      end

      class UpdateCommand < HammerCLIForeman::UpdateCommand
        success_message _("Http proxy updated.")
        failure_message _("Could not update the http proxy")

        build_options
      end

      autoload_subcommands
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hammer_cli_foreman-0.19.7 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-0.19.6 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-0.19.5 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-0.19.4 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-0.19.3 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-0.19.2 lib/hammer_cli_foreman/http_proxy.rb