Revision 264ff4f9
Added by Ivan Necas about 10 years ago
app/lib/actions/katello/user/create.rb | ||
---|---|---|
module Actions
|
||
module Katello
|
||
module User
|
||
class Create < Dynflow::Action
|
||
|
||
def self.subscribe
|
||
Headpin::User::Create
|
||
end
|
||
class Create < Actions::EntryAction
|
||
|
||
def plan(user)
|
||
user.disable_auto_reindex!
|
||
action_subject user
|
||
sequence do
|
||
plan_action(Pulp::User::Create, remote_id: user.remote_id)
|
||
plan_action(Pulp::User::SetSuperuser, remote_id: user.remote_id)
|
||
plan_action(ElasticSearch::Reindex, user)
|
||
end
|
||
end
|
||
|
||
def humanized_name
|
||
_("Create")
|
||
end
|
||
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Merge Actions::Headpin into Actions::Katello
It's not clear what next version of Headpin will or will not include.
Having all Katello related actions under one namespace makes the
situation much easier for now.