mirror of
https://github.com/rspec/rspec-metagem.git
synced 2022-11-09 12:09:29 -05:00
add reset rake/git tasks
This commit is contained in:
parent
0f90162419
commit
4b3eaeddb3
1 changed files with 3 additions and 2 deletions
5
Rakefile
5
Rakefile
|
@ -65,9 +65,10 @@ Rake::RDocTask.new do |rdoc|
|
|||
end
|
||||
|
||||
namespace :git do
|
||||
[:status, :pull, :push].each do |command|
|
||||
[:status, :pull, :push, :reset].each do |key|
|
||||
command = key == :reset ? "reset --hard" : key.to_s
|
||||
desc "git #{command} on all the repos"
|
||||
task command do
|
||||
task key do
|
||||
["../meta","../core","../expectations", "../mocks"].each do |repo|
|
||||
puts
|
||||
puts "=" * 50
|
||||
|
|
Loading…
Add table
Reference in a new issue