Class: KatelloForemanEngine::Actions::UserCreate
- Inherits:
-
Dynflow::Action
- Object
- Dynflow::Action
- KatelloForemanEngine::Actions::UserCreate
- Defined in:
- lib/katello_foreman_engine/actions/user_create.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.subscribe ⇒ Object
17 18 19 |
# File 'lib/katello_foreman_engine/actions/user_create.rb', line 17 def self.subscribe Headpin::Actions::UserCreate end |
Instance Method Details
#plan(user) ⇒ Object
21 22 23 24 25 |
# File 'lib/katello_foreman_engine/actions/user_create.rb', line 21 def plan(user) if !user.hidden? && !Bindings.user_find(input['username']) plan_self input end end |
#run ⇒ Object
27 28 29 |
# File 'lib/katello_foreman_engine/actions/user_create.rb', line 27 def run Bindings.user_create(input['username'], input['email'], input['admin']) end |