I have the following Rakefile in a Ruby 1.9.3 project:
Rake::TestTask.new do |t|
t.pattern = “spec/**/*_spec.rb”
t.verbose = true
task :default => :test
namespace :omglol do
namespace :file_a do
task :foo do
# do some stuff
namespace :file_b do task :bar do # do some stuff end end
As you can see, the first part of this file allow to run tests, just
using rake command. And the second part contains some tasks.
Actually, I have a lot of tasks inside omglol:file_a and omglol:file_b
namespaces. That’s why I would like to move each of them inside a file,
for instance tasks/omglol/file_a.rake and tasks/omglol/file_b.rake.
Is there a simple way to do so? Thanks.