Sha256: 3931cbb7e92991df45b028cd2bb6efc92edcfa56eda58b346c94fa6d55110f05
Contents?: true
Size: 765 Bytes
Versions: 63
Compression:
Stored size: 765 Bytes
Contents
module Actions module Katello module ContentViewPuppetEnvironment class Destroy < Actions::EntryAction def plan(puppet_env) action_subject(puppet_env) if ::Katello::RepositoryTypeManager.enabled?('puppet') plan_action(Pulp::Repository::Destroy, content_view_puppet_environment_id: puppet_env.id) end plan_self end def finalize puppet_env = ::Katello::ContentViewPuppetEnvironment. find(input[:content_view_puppet_environment][:id]) puppet_env.destroy! rescue ActiveRecord::RecordNotFound => e output[:response] = e.message end def humanized_name _("Delete") end end end end end
Version data entries
63 entries across 63 versions & 1 rubygems