Class: KatelloForemanEngine::Actions::ContentViewPromote
- Inherits:
-
Dynflow::Action
- Object
- Dynflow::Action
- KatelloForemanEngine::Actions::ContentViewPromote
- Defined in:
- lib/katello_foreman_engine/actions/content_view_promote.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.subscribe ⇒ Object
17 18 19 |
# File 'lib/katello_foreman_engine/actions/content_view_promote.rb', line 17 def self.subscribe Katello::Actions::ContentViewPromote end |
Instance Method Details
#plan(content_view, from_env, to_env) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/katello_foreman_engine/actions/content_view_promote.rb', line 21 def plan(content_view, from_env, to_env) unless Bindings.environment_find(input['organization_label'], input['to_env_label'], input['label']) plan_self input end content_view.repos(to_env).each do |repo| plan_action(RepositoryChange, repo) end end |
#run ⇒ Object
38 39 40 |
# File 'lib/katello_foreman_engine/actions/content_view_promote.rb', line 38 def run Bindings.environment_create(input['id'], input['organization_label'], input['to_env_label'], input['label']) end |