4 desc "Initialize git submodule for mspec"
6 unless File.exist? "mspec/bin/mspec"
7 puts "Initializing mspec submodule..."
9 sh "git submodule init mspec"
10 sh "git submodule update mspec"
14 desc "Synchronize mspec submodule to current remote version"
18 sh "git rebase origin"
20 version = `git log --pretty=oneline -1 mspec`[0..7]
22 sh "git commit -m 'Updated MSpec submodule to #{version}'"
25 desc "Update mspec sources to current submodule version"
27 sh "git submodule update mspec"