Method: GGSM::Submodule#foreach_module

Defined in:
lib/ggsm/util/submodule.rb

#foreach_moduleObject



121
122
123
124
125
126
127
128
129
130
# File 'lib/ggsm/util/submodule.rb', line 121

def foreach_module
  subs = get_submodule
  project_path = Dir.pwd
  subs.each do |sub|
    Dir.chdir sub
    puts "==> 进入#{sub}:".yellow
    yield sub, subs.index(sub)
    Dir.chdir project_path
  end
end