Ruby Function to Check If We Are Currently Online

DevOps By Rultor.com We recommend RubyMine

rake PDD status Gem Version Test Coverage Yard Docs Hits-of-Code License

First, install it:

gem install online

Then, you can use the online? global function:

require 'online'
if online?
  # do some LIVE testing
end

How to contribute

Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 3.0+ and Bundler installed. Then:

bundle update
bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.