How do I run this rake file in terminal/console?
my statistik.rake in lib/tasks
desc "Importer statistikker"
namespace :reklamer do
task :iqmedier => :environment do
...
end
task :euroads => :environment do
...
end
task :mikkelsen => :environment do
...
end
task :orville => :environment do
...
end
end
Best Answer
You can run Rake tasks from your shell by running:
To run from from Ruby (e.g., in the Rails console or another Rake task):
To run multiple tasks in the same namespace with a single task, create the following new task in your namespace: