Method: App::UtilsTools.check_remote_is_reachable

Defined in:
lib/core/utils_tools.rb

.check_remote_is_reachable(host_address) ⇒ Object

Check that remote host is reachable.

Returns:

  • void



23
24
25
26
27
# File 'lib/core/utils_tools.rb', line 23

def self.check_remote_is_reachable(host_address)
    if ping(host_address) != 0
        App::Terminal::error('Cannot reach remote host', ["#{App::Terminal::format_highlight(host_address)} cannot be reached.", 'Please make sure the host is online and/or configured correctly.'])
    end
end