Module: ForemanChef::HostgroupExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/foreman_chef/hostgroup_extensions.rb
Instance Method Summary collapse
Instance Method Details
#chef_proxy ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/models/foreman_chef/hostgroup_extensions.rb', line 9 def chef_proxy if ancestry.present? SmartProxy.with_features('Chef').find_by_id(inherited_chef_proxy_id) else super end end |
#inherited_chef_proxy_id ⇒ Object
5 6 7 |
# File 'app/models/foreman_chef/hostgroup_extensions.rb', line 5 def inherited_chef_proxy_id read_attribute(:chef_proxy_id) || nested(:chef_proxy_id) end |