module CreateGithubRelease::BacktickDebug
def `(command)
-
(String)
- the output of the command
Parameters:
-
command
(String
) -- the command to execute
Other tags:
- Example: A command that fails -
def `(command) puts "COMMAND\n #{command}" if backtick_debug? super.tap do |output| if backtick_debug? puts "OUTPUT\n" output.lines { |l| puts " #{l.chomp}" } puts "EXITSTATUS\n #{$CHILD_STATUS.exitstatus}\n" end end end