Skip to content

Instantly share code, notes, and snippets.

@yellow5
Created September 6, 2011 19:02
Show Gist options
  • Save yellow5/1198638 to your computer and use it in GitHub Desktop.
Save yellow5/1198638 to your computer and use it in GitHub Desktop.
Example of extended parallel namespace within rake task
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