Class: Actions::Katello::ContentViewPuppetEnvironment::Destroy
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::Katello::ContentViewPuppetEnvironment::Destroy
- Defined in:
- app/lib/actions/katello/content_view_puppet_environment/destroy.rb
Instance Method Summary collapse
Instance Method Details
#finalize ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/lib/actions/katello/content_view_puppet_environment/destroy.rb', line 11 def finalize puppet_env = ::Katello::ContentViewPuppetEnvironment. find(input[:content_view_puppet_environment][:id]) puppet_env.destroy! rescue ActiveRecord::RecordNotFound => e output[:response] = e. end |
#humanized_name ⇒ Object
20 21 22 |
# File 'app/lib/actions/katello/content_view_puppet_environment/destroy.rb', line 20 def humanized_name _("Delete") end |
#plan(puppet_env) ⇒ Object
5 6 7 8 9 |
# File 'app/lib/actions/katello/content_view_puppet_environment/destroy.rb', line 5 def plan(puppet_env) action_subject(puppet_env) plan_action(Pulp::Repository::Destroy, pulp_id: puppet_env.pulp_id) plan_self end |