class Honeybadger::Util::Revision

def detect(root = Dir.pwd)

def detect(root = Dir.pwd)
  revision = from_heroku ||
    from_capistrano(root) ||
    from_git
  revision = revision.to_s.strip
  return unless revision =~ /\S/
  revision
end