I have been creating a Rakefile. The directions says to create a Rakefile file that will help you automate common tasks. It also said to put in :
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << "tests"
t.test_files = FileList['tests/test*.rb']
t.verbose = true
end
Thanks
You are going to want to keep your rake tasks in lib/tasks/your_task.rake
task :your_task => :environment do
some code
end
your_task being the name of your rake task.
Hope this helps
Simply create a new file and name it as task.rake. Normally we put the rake task in directory lib/tasks. But you can put it anywhere you like.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With