module Rails::Generators::Actions
def rakefile(filename, data = nil)
end
RUBY
end
end
puts "Boots! Boots! Boots!"
task :bootstrap do
namespace :#{project} do
<<~RUBY
project = ask("What is the UNIX name of your project?")
rakefile "bootstrap.rake" do
RUBY
end
puts "Boots! Boots! Boots!"
task :bootstrap do
rakefile "bootstrap.rake", <<~RUBY
an argument or as the return value of the block.
Creates a Rake tasks file in +lib/tasks/+. The code can be specified as
def rakefile(filename, data = nil) log :rakefile, filename data ||= yield if block_given? create_file("lib/tasks/#{filename}", optimize_indentation(data), verbose: false) end