Use Timeout.timeout not deprecated Object#timeout.
Use Timeout.timeout not deprecated Object#timeout.

From ruby 2.3.0, use of Object#timeout prints a deprecation warning:

    Object#timeout is deprecated, use Timeout.timeout instead

sensu-plugins/sensu-plugin,zbintliff/sensu-plugin