I am trying to implement the following rake task from the CMS wiki
namespace :test do
task :prepare do
ENV['FROM'] = 'folder-name'
ENV['TO'] = 'site-identifier'
Rake::Task['comfortable_mexican_sofa:fixtures:import'].invoke
end
end
I created test.rake with the above contents and put it in lib/tasks/
$ bundle exec rake:test
gives me: bundler: command not found: rake:test.
My search for documentation leads me to explainations of: RSpec::Core::RakeTask. I assume these are different things. My question is: How do I execute the above rake task? Any help would be greatly appreciated.