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
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/git/multi.rb', line 146 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 |
#spputs(*args) ⇒ Object
162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/git/multi.rb', line 162 def spputs(*args) # split, prefix and puts args.each do |arg| case arg when Array arg.each do |argh| puts("#{full_name}: #{argh}"); end when String spputs(arg.split($RS)) else ssputs(arg.to_s) end end end |