class GitFyncy::Logger

Public Class Methods

new(background) click to toggle source
# File lib/git-fyncy/logger.rb, line 3
def initialize(background)
  @log = !(STDOUT.tty? && background)
end

Public Instance Methods

log(thing) click to toggle source
# File lib/git-fyncy/logger.rb, line 7
def log(thing)
  puts thing if @log
end