Sha256: f8740885a4e1733d98306f8bb41ece84c2dc7ce8415b5859624fd2fadbf3b265
Contents?: true
Size: 1.09 KB
Versions: 9
Compression:
Stored size: 1.09 KB
Contents
module Actions module Katello module ContentViewPuppetEnvironment class Create < Actions::EntryAction # rubocop:disable MethodLength 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 def humanized_name _("Create") end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems