module Hookshot

Constants

VERSION

Public Class Methods

current_working_directory() click to toggle source
# File lib/hookshot.rb, line 29
def self.current_working_directory
  path = @current_working_directory || Dir.pwd
  Pathname.new(path)
end
with_captured_stdout() { || ... } click to toggle source
# File lib/hookshot.rb, line 34
def self.with_captured_stdout
  old_stdout = $stdout
  $stdout = StringIO.new
  yield
  $stdout.string
ensure
  $stdout = old_stdout
end