Module: ForemanPuppet::Extensions::HostCommon
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/foreman_puppet/extensions/host_common.rb
Instance Method Summary collapse
Instance Method Details
#all_puppetclasses(env = environment) ⇒ Object
6 7 8 9 |
# File 'app/models/concerns/foreman_puppet/extensions/host_common.rb', line 6 def all_puppetclasses(env = environment) return ForemanPuppet::Puppetclass.none unless puppet puppet.all_puppetclasses(env) end |
#puppetclasses ⇒ Object
11 12 13 |
# File 'app/models/concerns/foreman_puppet/extensions/host_common.rb', line 11 def puppetclasses (puppet || build_puppet).puppetclasses end |