Custom Rake Tasks
While I was doing my previous task, I think I worked out Rake pretty well.
The key points are these;
namespaces:
namespace :first do
namespace :second do
namespace :third do
task :do do
puts "stuff"
end
end
end
end
This will create a task named "first:second:third:do" which will just output the word "stuff".
prerequisites:
task :one => [:two, :three] do
puts "one"
end
task :two => :three do
puts "two"
end
task :three do
puts "three"
end
If you run "rake one" it'll ensure that "two" and "three" have both been executed already.