Class: ForemanPuppet::ProxyStatus::Puppet
- Inherits:
-
ProxyStatus::Base
- Object
- ProxyStatus::Base
- ForemanPuppet::ProxyStatus::Puppet
- Defined in:
- app/services/foreman_puppet/proxy_status/puppet.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.humanized_name ⇒ Object
12 13 14 |
# File 'app/services/foreman_puppet/proxy_status/puppet.rb', line 12 def self.humanized_name 'Puppet' end |
Instance Method Details
#environment_stats ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/services/foreman_puppet/proxy_status/puppet.rb', line 4 def environment_stats fetch_proxy_data do env_counts = {} api.environments.each { |env| env_counts[env] = api.class_count(env) } env_counts end end |