Class: OnlyofficeTestrailWrapper::SystemHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_testrail_wrapper/helpers/system_helper.rb

Overview

Stuff for working with OS

Class Method Summary collapse

Class Method Details

.hostnameString

Returns name of current host.

Returns:

  • (String)

    name of current host



10
11
12
13
14
# File 'lib/onlyoffice_testrail_wrapper/helpers/system_helper.rb', line 10

def hostname
  name = Socket.gethostname
  OnlyofficeLoggerHelper.log("hostname is: #{name}")
  name
end