module Guard::UI

def deprecation(message, options = {})

Options Hash: (**options)
  • plugin (String) -- manually define the calling plugin
  • reset (Boolean) -- whether to clean the output before

Parameters:
  • message (String) -- the message to show
def deprecation(message, options = {})
  unless ENV["GUARD_GEM_SILENCE_DEPRECATIONS"] == "1"
    backtrace = Thread.current.backtrace[1..5].join("\n\t >")
    msg = format("%s\nDeprecation backtrace: %s", message, backtrace)
    warning(msg, options)
  end
end