Class: GitSu::Shell
- Inherits:
-
Object
- Object
- GitSu::Shell
- Defined in:
- lib/gitsu/shell.rb
Instance Method Summary collapse
Instance Method Details
#capture(command) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/gitsu/shell.rb', line 19 def capture(command) output = `#{command}`.strip if block_given? yield(output, $?) end output end |
#execute(command) ⇒ Object
27 28 29 |
# File 'lib/gitsu/shell.rb', line 27 def execute(command) system command end |