class GithubPivotalFlow::Shell
Public Class Methods
exec(command, abort_on_failure = true)
click to toggle source
# File lib/github_pivotal_flow/shell.rb, line 3 def self.exec(command, abort_on_failure = true) result = `#{command}` if $?.exitstatus != 0 && abort_on_failure print "Failed command: #{command} " abort 'FAIL' end result end