Sha256: c8397c3ad2c7e4a1d957fba817afaa248b4312cca4ee5f9ab8d6088b666df4a7

Contents?: true

Size: 998 Bytes

Versions: 13

Compression:

Stored size: 998 Bytes

Contents

module HammerCLIForeman
  module CommandExtensions
    class Subnet < HammerCLI::CommandExtensions
      option "--dns", "DNS_NAME", _("DNS Proxy to use within this subnet"),
             attribute_name: :option_dns_name,
             referenced_resource: :smart_proxy
      option "--dhcp", "DHCP_NAME", _("DHCP Proxy to use within this subnet"),
             attribute_name: :option_dhcp_name,
             referenced_resource: :smart_proxy
      option "--tftp", "TFTP_NAME", _("TFTP Proxy to use within this subnet"),
             attribute_name: :option_tftp_name,
             referenced_resource: :smart_proxy
      option "--prefix", "PREFIX", _("Network prefix in CIDR notation (e.g. 64) for this subnet")

      option_sources do |sources, command|
        sources.find_by_name('IdResolution').insert_relative(
          :after,
          'IdParams',
          HammerCLIForeman::OptionSources::ReferencedResourceIdParams.new(command)
        )
        sources
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hammer_cli_foreman-2.5.2 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-3.0.0 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.5.1 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.5.0 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.3.2 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.4.0 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.3.1 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.3.0 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.1.3 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.2.0 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.1.2 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.1.1 lib/hammer_cli_foreman/command_extensions/subnet.rb
hammer_cli_foreman-2.1.0 lib/hammer_cli_foreman/command_extensions/subnet.rb