How do I start IRB console from a rake task?
- by Michael Lang
I'm trying to write a rake task that will set up an environment mirroring my project.
task :environment do
require 'rubygems'
require 'sequel'
# require 'my_projects_special_files'
end
task :foo => [:environment] do
require 'irb'
IRB.start
end
Leads to irb complaining that "foo" doesn't exist (the name of the task)
…