Created
September 6, 2011 19:02
-
-
Save yellow5/1198638 to your computer and use it in GitHub Desktop.
Example of extended parallel namespace within rake task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :parallel do | |
desc "run all main specs, plugin_name specs and features in parallel with parallel:all[num_cpus]" | |
task :all, :count do |t, args| | |
Rake::Task['parallel:features'].execute(:count => args[:count]) | |
Rake::Task['parallel:spec'].execute(:count => args[:count], :path_prefix => '../vendor/plugins/plugin_name/spec') | |
Rake::Task['parallel:spec'].execute(:count => args[:count]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment