module StartingBlocks::Bash

Public Class Methods

run(command) click to toggle source
# 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