Method: Grit::Git#sh
- Defined in:
- lib/grit/git.rb
#sh(command, &block) ⇒ Object
452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/grit/git.rb', line 452 def sh(command, &block) process = Child.new( command, :timeout => Git.git_timeout, :max => Git.git_max_size ) [process.out, process.err] rescue TimeoutExceeded, MaximumOutputExceeded raise GitTimeout, command end |