Module: Katello::Concerns::EnvironmentExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/katello/concerns/environment_extensions.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#content_view ⇒ Object
18 19 20 |
# File 'app/models/katello/concerns/environment_extensions.rb', line 18 def content_view self.content_view_puppet_environment.try(:content_view) end |
#destroy! ⇒ Object
26 27 28 29 30 |
# File 'app/models/katello/concerns/environment_extensions.rb', line 26 def destroy! unless destroy fail self.errors..join('; ') end end |
#lifecycle_environment ⇒ Object
22 23 24 |
# File 'app/models/katello/concerns/environment_extensions.rb', line 22 def lifecycle_environment self.content_view_puppet_environment.try(:environment) end |