Spec-Zone.ru › Homebrew

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

  • #configure_sandbox! ⇒ Boolean private
  • #runner_os_title ⇒ String private
  • #runner_os_title_with_arch ⇒ String private

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_title ⇒ String

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:

  • (String)


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

def runner_os_title
  OS.kernel_name
end

#runner_os_title_with_arch ⇒ String

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:

  • (String)


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

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/OS/Linux/TestBot/ClassMethods.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API