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_viewObject



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.full_messages.join('; ')
  end
end

#lifecycle_environmentObject



22
23
24
# File 'app/models/katello/concerns/environment_extensions.rb', line 22

def lifecycle_environment
  self.content_view_puppet_environment.try(:environment)
end