Class: Katello::ContentViewEnvironment
- Includes:
- ForemanTasks::Concerns::ActionSubject, Authorization::ContentViewEnvironment, Glue, Glue::Candlepin::Environment
- Defined in:
- app/models/katello/content_view_environment.rb
Class Method Summary collapse
Instance Method Summary collapse
- #activation_keys ⇒ Object
- #hosts ⇒ Object
-
#owner ⇒ Object
retrieve the owning environment for this content view environment.
Methods included from Authorization::ContentViewEnvironment
Methods included from Glue
Methods included from Glue::Candlepin::Environment
Methods inherited from Model
Class Method Details
.for_content_facets(content_facets) ⇒ Object
28 29 30 |
# File 'app/models/katello/content_view_environment.rb', line 28 def self.for_content_facets(content_facets) joins(:content_view_environment_content_facets, :content_facets).where("#{Katello::ContentViewEnvironmentContentFacet.table_name}.content_facet_id" => content_facets).uniq end |
Instance Method Details
#activation_keys ⇒ Object
41 42 43 |
# File 'app/models/katello/content_view_environment.rb', line 41 def activation_keys content_view.activation_keys.in_environment(environment) end |
#hosts ⇒ Object
37 38 39 |
# File 'app/models/katello/content_view_environment.rb', line 37 def hosts ::Host.in_content_view_environment(:content_view => self.content_view, :lifecycle_environment => self.environment) end |
#owner ⇒ Object
retrieve the owning environment for this content view environment.
33 34 35 |
# File 'app/models/katello/content_view_environment.rb', line 33 def owner self.environment end |