Sha256: 650c8421e557659baf39e45385f98f3e305fdc90f2f6e5d10e441f59e0b498c7
Contents?: true
Size: 1.17 KB
Versions: 11
Compression:
Stored size: 1.17 KB
Contents
module Actions module Katello module Organization class Create < Actions::EntryAction def plan(organization) organization.setup_label_from_name organization.create_library organization.create_anonymous_provider unless organization.anonymous_provider organization.create_redhat_provider unless organization.redhat_provider cp_create = nil organization.save! sequence do cp_create = plan_action(Candlepin::Owner::Create, label: organization.label, name: organization.name) plan_action(Katello::Environment::LibraryCreate, organization.library) end if cp_create action_subject organization, label: cp_create.output[:response][:key] else action_subject organization end plan_self(:organization_id => organization.id) end def run ::Organization.find_by(:id => input[:organization_id]).try(:load_debug_cert) end def humanized_name _("Create") end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems