module Changelog::Helper
Constants
- Abort
- Done
- MAX_FILENAME_LENGTH
Public Instance Methods
capture_stdout(cmd)
click to toggle source
# File lib/changelog/helper.rb, line 11 def capture_stdout(cmd) output = IO.popen(cmd, &:read) fail_with "command failed: #{cmd.join(' ')}" unless $?.success? output end
fail_with(message)
click to toggle source
# File lib/changelog/helper.rb, line 17 def fail_with(message) raise Abort, "#{'error'.red} #{message}" end