Module: StartingBlocks::Bash
- Defined in:
- lib/starting_blocks/bash.rb
Class Method Summary collapse
Class Method Details
.run(command) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/starting_blocks/bash.rb', line 3 def self.run command puts "Running: #{command}" if StartingBlocks.verbose text = `#{command}` result = $? { text: text, success: result.success?, exit_code: result.to_i } end |