Pull logic in ruby/build.rake out into generic tasks