Class: OmahaGroupsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- OmahaGroupsController
- Includes:
- Foreman::Controller::AutoCompleteSearch
- Defined in:
- app/controllers/omaha_groups_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
9 10 11 |
# File 'app/controllers/omaha_groups_controller.rb', line 9 def index @omaha_groups = resource_base_with_search end |
#model_of_controller ⇒ Object
21 22 23 |
# File 'app/controllers/omaha_groups_controller.rb', line 21 def model_of_controller ::ForemanOmaha::OmahaGroup end |
#resource_class ⇒ Object
25 26 27 |
# File 'app/controllers/omaha_groups_controller.rb', line 25 def resource_class ::ForemanOmaha::OmahaGroup end |
#show ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/controllers/omaha_groups_controller.rb', line 13 def show @out_of_sync = ForemanOmaha::OmahaFacet.where(:omaha_group => @omaha_group).out_of_sync.includes(:host) = @omaha_group. @status_distribution = ForemanOmaha::Charts::StatusDistribution.new(@omaha_group.hosts) @version_distribution = ForemanOmaha::Charts::VersionDistribution.new(@omaha_group.hosts) @oem_distribution = ForemanOmaha::Charts::OemDistribution.new(@omaha_group.hosts) end |