Sha256: 5a2122678354d88c4f6e9d9dc065bdb9fc1af45d412c9906c80fd029b7691d71
Contents?: true
Size: 1.15 KB
Versions: 21
Compression:
Stored size: 1.15 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 organization.create_redhat_provider cp_create = nil organization.save! sequence do if ::SETTINGS[:katello][:use_cp] cp_create = plan_action(Candlepin::Owner::Create, label: organization.label, name: organization.name) end plan_action(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
21 entries across 21 versions & 1 rubygems