Module: Git::Multi::Nike
- Defined in:
- lib/git/multi.rb
Overview
the main Git::Multi capabilities
Instance Method Summary collapse
Instance Method Details
#just_do_it(interactive, pipeline, options = {}) ⇒ Object
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/git/multi.rb', line 90 def just_do_it(interactive, pipeline, = {}) working_dir = case ([:in] || '').to_sym when :parent_dir then parent_dir when :local_path then local_path else Dir.pwd end Dir.chdir(working_dir) do if interactive? puts "#{full_name.invert} (#{fractional_index})" interactive.call(self) else pipeline.call(self) end end end |