lib/foreman_tasks/dynflow/configuration.rb in foreman-tasks-0.7.17 vs lib/foreman_tasks/dynflow/configuration.rb in foreman-tasks-0.7.18

- old
+ new

@@ -52,13 +52,15 @@ def on_init(&block) @on_init << block end + def run_on_init_hooks(world) + @on_init.each { |init| init.call(world) } + end + def initialize_world(world_class = ::Dynflow::World) - world_class.new(world_config).tap do |world| - @on_init.each { |init| init.call(world) } - end + world_class.new(world_config) end # No matter what config.remote says, when the process is marked as executor, # it can't be remote def remote?