lib/foreman_tasks/dynflow.rb in foreman-tasks-0.1.3 vs lib/foreman_tasks/dynflow.rb in foreman-tasks-0.1.4
- old
+ new
@@ -36,15 +36,10 @@
config.dynflow_logger.warn("ForemanTasks: lazy loading with PhusionPassenger might lead to unexpected results")
end
config.initialize_world.tap do |world|
@world = world
- ActionDispatch::Reloader.to_prepare do
- ForemanTasks.dynflow.eager_load_actions!
- world.reload!
- end
-
unless config.remote?
at_exit { world.terminate.wait }
# for now, we can check the consistency only when there
# is no remote executor. We should be able to check the consistency
@@ -98,8 +93,9 @@
config.eager_load_paths.each do |load_path|
Dir.glob("#{load_path}/**/*.rb").sort.each do |file|
require_dependency file
end
end
+ @world.reload! if @world
end
end
end