module Rails::Generators::Actions
def rakefile(filename, data=nil, &block)
rakefile("seed.rake", "puts 'im plantin ur seedz'")
end
TASK
end
end
puts "i like boots!"
task :bootstrap do
namespace :#{project} do
<<-TASK
project = ask("What is the UNIX name of your project?")
rakefile("bootstrap.rake") do
==== Examples
Create a new Rakefile with the provided code (either in a block or a string).
def rakefile(filename, data=nil, &block) log :rakefile, filename create_file("lib/tasks/#{filename}", data, :verbose => false, &block) end