Module: OS::Linux::TestBot::ClassMethods Private

Extended by:
T::Helpers
Defined in:
extend/os/linux/test_bot.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#configure_sandbox!Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


23
24
25
26
27
28
29
# File 'extend/os/linux/test_bot.rb', line 23

def configure_sandbox!
  require "sandbox"
  ::Sandbox.configure!
  ::Sandbox.available?
rescue ::ErrorDuringExecution
  false
end

#runner_os_titleString

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



13
14
15
# File 'extend/os/linux/test_bot.rb', line 13

def runner_os_title
  OS.kernel_name
end

#runner_os_title_with_archString

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



18
19
20
# File 'extend/os/linux/test_bot.rb', line 18

def runner_os_title_with_arch
  "#{runner_os_title} #{::Hardware::CPU.arch}"
end