1
0
Fork 0
mirror of https://github.com/rspec/rspec-metagem.git synced 2022-11-09 12:09:29 -05:00

add rake tasks for git push and pull

This commit is contained in:
David Chelimsky 2009-06-29 14:49:02 -04:00
parent 0a645e25ef
commit 0f90162419

View file

@ -65,14 +65,16 @@ Rake::RDocTask.new do |rdoc|
end
namespace :git do
"git status on all the repos"
task :status do
["../core","../expectations", "../mocks"].each do |repo|
puts
puts "=" * 50
puts "running git status on #{repo}:"
puts "=" * 50
puts `cd #{repo} && git status`
[:status, :pull, :push].each do |command|
desc "git #{command} on all the repos"
task command do
["../meta","../core","../expectations", "../mocks"].each do |repo|
puts
puts "=" * 50
puts "running git #{command} on #{repo}:"
puts "=" * 50
puts `cd #{repo} && git #{command}`
end
end
end
end