lib/foreman_tasks/dynflow/configuration.rb in foreman-tasks-0.5.0 vs lib/foreman_tasks/dynflow/configuration.rb in foreman-tasks-0.5.1

- old
+ new

@@ -53,9 +53,11 @@ !rake_task_with_executor? && @remote end def rake_task_with_executor? + return false unless defined?(Rake) + Rake.application.top_level_tasks.any? do |rake_task| rake_tasks_with_executor.include?(rake_task) end end