Sha256: b18d7426bf9353617dcbfbb8bbb2a4fe870f7ac9609100748d89f8ea109d1c90
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
namespace :mod do desc "Initialize sub-modules" task :init do `git submodule init` end desc "Update sub-modules" task :update do `git submodule update` end desc "Pull from origin on every sub-modules" task :pull do in_each_sub_module("Refreshing") do |sub| system "git pull origin" end end desc "Push to origin on every sub-modules" task :push do in_each_sub_module("Pushing") do |sub| system "git push origin" end end desc "Run bundle-update on each submodule" task :"bundle-update" do in_each_sub_module("'bundle update' in") do |sub| system "bundle update" system "BUNDLE_GEMFILE=Gemfile.ci bundle update" end end desc "Run bundle-install on each submodule" task :bundle do in_each_sub_module("'bundle install' in") do |sub| system "bundle install" system "BUNDLE_GEMFILE=Gemfile.ci bundle install" end end desc "Test sub-modules" task :test do in_each_sub_module("Test") do |sub| system "bundle exec rake" end end desc "Display 'git status' on each sub-module" task :status do in_each_sub_module("git status") do |sub| system "git status" end end desc "Run 'git reset --hard' on each sub-module" task :'reset-hard' do in_each_sub_module("git reset --hard") do |sub| system "git reset --hard" end end desc "Display 'git diff' on each sub-module" task :diff do in_each_sub_module("git diff") do |sub| system "git diff" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-0.16.1 | tasks/mod.rake |
alf-0.16.0 | tasks/mod.rake |