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
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/git/multi.rb', line 144 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 |