Sha256: fe9ce2d56037c934c1e5d6d0e7dd2090d58548871ab4b64af3837386d00a7883

Contents?: true

Size: 1.19 KB

Versions: 29

Compression:

Stored size: 1.19 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")
          HammerCLIForeman::References.taxonomies(self)
        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

29 entries across 29 versions & 1 rubygems

Version Path
hammer_cli_foreman-3.13.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.12.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.10.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.9.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.8.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.7.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.5.1 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.6.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.5.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.4.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.3.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.2.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-2.5.2 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.1.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-3.0.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-2.5.1 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-2.5.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-2.3.2 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-2.4.0 lib/hammer_cli_foreman/http_proxy.rb
hammer_cli_foreman-2.3.1 lib/hammer_cli_foreman/http_proxy.rb