Class: Actions::Katello::ContentViewPuppetEnvironment::Create
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::Katello::ContentViewPuppetEnvironment::Create
- Defined in:
- app/lib/actions/katello/content_view_puppet_environment/create.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
28 29 30 |
# File 'app/lib/actions/katello/content_view_puppet_environment/create.rb', line 28 def humanized_name _("Create") end |
#plan(puppet_environment, clone = false) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/lib/actions/katello/content_view_puppet_environment/create.rb', line 5 def plan(puppet_environment, clone = false) puppet_environment.save! action_subject(puppet_environment) plan_self puppet_path = puppet_environment.generate_puppet_path sequence do plan_action(Pulp::Repository::Create, content_type: ::Katello::Repository::PUPPET_TYPE, pulp_id: puppet_environment.pulp_id, name: puppet_environment.name, with_importer: true, path: puppet_path) # when creating a clone, the following actions are handled by the # publish/promote process unless clone plan_action(Katello::Repository::MetadataGenerate, puppet_environment) if puppet_environment.environment end end end |