Class: HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy
- Inherits:
-
HammerCLI::CommandExtensions
- Object
- HammerCLI::CommandExtensions
- HammerCLIForemanPuppet::CommandExtensions::HostPuppetProxy
- Defined in:
- lib/hammer_cli_foreman_puppet/command_extensions/host.rb
Class Method Summary collapse
Class Method Details
.delete_deprecated_options(command_class) ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/hammer_cli_foreman_puppet/command_extensions/host.rb', line 54 def self.(command_class) %w[--puppetclass-ids --environment-id --config-group-ids].each do |switch| family = command_class.option_families.find do |f| f.head.switches.include?(switch) end command_class..delete_if do |o| family.all.include?(o) end end end |
.proxy_id(resolver, name) ⇒ Object
50 51 52 |
# File 'lib/hammer_cli_foreman_puppet/command_extensions/host.rb', line 50 def self.proxy_id(resolver, name) resolver.smart_proxy_id('option_name' => name) end |