I ran into an issue with auto loading of YML config files. Here's a patch that fixes the problem.
Background:
My Rakefile had a task definition like this:
rapc :supertask => [:subtask1, :subtask2] do |r|
...
end
rapc is a custom task.
When I tried to put settings in the yml file, I noticed that they were never loaded. While investigating the problem I realized that the task_name parameter passed into the load_config_by_task_name method is, in case of a task definition like the one above, a Hash, rather than a Symbol. The following patch ensures that the correct yml config file will be loaded in this case.
I ran into an issue with auto loading of YML config files. Here's a patch that fixes the problem.
Background:
My Rakefile had a task definition like this:
rapc
is a custom task.When I tried to put settings in the yml file, I noticed that they were never loaded. While investigating the problem I realized that the
task_name
parameter passed into theload_config_by_task_name
method is, in case of a task definition like the one above, aHash
, rather than aSymbol
. The following patch ensures that the correct yml config file will be loaded in this case.