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:
parent
0a645e25ef
commit
0f90162419
1 changed files with 10 additions and 8 deletions
18
Rakefile
18
Rakefile
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue