Module: ForemanSpacewalk::HostExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/foreman_spacewalk/host_extensions.rb

Instance Method Summary collapse

Instance Method Details

#hostgroup_inherited_attributes_with_spacewalkObject



12
13
14
# File 'app/models/concerns/foreman_spacewalk/host_extensions.rb', line 12

def hostgroup_inherited_attributes_with_spacewalk
  hostgroup_inherited_attributes_without_spacewalk + ['spacewalk_proxy_id']
end

#smart_proxy_ids_with_spacewalk_proxyObject



16
17
18
19
20
21
22
# File 'app/models/concerns/foreman_spacewalk/host_extensions.rb', line 16

def smart_proxy_ids_with_spacewalk_proxy
  ids = smart_proxy_ids_without_spacewalk_proxy
  [spacewalk_proxy, hostgroup.try(:spacewalk_proxy)].compact.each do |proxy|
    ids << proxy.id
  end
  ids
end