I\'m new to Rake and using it to build .net projects. What I\'m interested in is having a Summary task that prints out a summary of what has been done. I want this task to alw
If anyone came here looking for how to run a task before all other tasks (eg, a special env loading task), you can still use the same enhance method, except only the first arguement:
task :environment do
env = (ENV['RACK_ENV'] || 'production').downcase
# do things before other tasks
end
# run environment task before all tasks for setup
Rake::Task.tasks.each do |t|
next if t.name == 'environment'
t.enhance [:environment]
end