I am trying to create a rakefile that runs both redis and irb. I have figured out how to run IRB (the first task runs), but when I try to run the redis task I see the error:
rake aborted! wrong number of arguments
Exactly what is wrong? My code is below:
task :default do
require 'irb'
IRB.start
end
task :init do
require 'redis'
exec {'redis-server'}
end
Command I use to run the code:
bundle exec rake (or rake :init, depending on which one I want to run)