Spec-Zone.ru › Homebrew

Class: GitHubRunner

Inherits:
T::Struct
  • Object
  • T::Struct
  • GitHubRunner
show all
Defined in:
github_runner.rb

Instance Attribute Summary collapse

  • #active ⇒ Boolean private

    Returns the value of prop active.

  • #arch ⇒ Symbol readonly private

    Returns the value of prop arch.

  • #macos_version ⇒ MacOSVersion? readonly private

    Returns the value of prop macos_version.

  • #platform ⇒ Symbol readonly private

    Returns the value of prop platform.

  • #spec ⇒ LinuxRunnerSpec, MacOSRunnerSpec readonly private

    Returns the value of prop spec.

Instance Method Summary collapse

  • #arm64? ⇒ Boolean private
  • #initialize(platform:, arch:, spec:, macos_version: nil, active: false) ⇒ void constructor
  • #linux? ⇒ Boolean private
  • #macos? ⇒ Boolean private
  • #x86_64? ⇒ Boolean private

Constructor Details

#initialize(platform:, arch:, spec:, macos_version: nil, active: false) ⇒ void

Parameters:

  • platform (Symbol)
  • arch (Symbol)
  • spec (LinuxRunnerSpec, MacOSRunnerSpec)
  • macos_version (MacOSVersion, nil) (defaults to: nil)
  • active (Boolean) (defaults to: false)
# File ''

const :platform, Symbol
const :arch, Symbol
const :spec, T.any(LinuxRunnerSpec, MacOSRunnerSpec)
const :macos_version, T.nilable(MacOSVersion)
prop  :active, T::Boolean, default: false

Instance Attribute Details

#active ⇒ 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 the value of prop active.

Returns:

  • (Boolean)
# File ''

prop  :active, T::Boolean, default: false

#arch ⇒ Symbol (readonly)

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 the value of prop arch.

Returns:

  • (Symbol)
# File ''

const :arch, Symbol

#macos_version ⇒ MacOSVersion? (readonly)

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 the value of prop macos_version.

Returns:

  • (MacOSVersion, nil)
# File ''

const :macos_version, T.nilable(MacOSVersion)

#platform ⇒ Symbol (readonly)

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 the value of prop platform.

Returns:

  • (Symbol)
# File ''

const :platform, Symbol

#spec ⇒ LinuxRunnerSpec, MacOSRunnerSpec (readonly)

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 the value of prop spec.

Returns:

  • (LinuxRunnerSpec, MacOSRunnerSpec)
# File ''

const :spec, T.any(LinuxRunnerSpec, MacOSRunnerSpec)

Instance Method Details

#arm64? ⇒ 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)


30
31
32
# File 'github_runner.rb', line 30

def arm64?
  arch == :arm64
end

#linux? ⇒ 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)


20
21
22
# File 'github_runner.rb', line 20

def linux?
  platform == :linux
end

#macos? ⇒ 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)


15
16
17
# File 'github_runner.rb', line 15

def macos?
  platform == :macos
end

#x86_64? ⇒ 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)


25
26
27
# File 'github_runner.rb', line 25

def x86_64?
  arch == :x86_64
end

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

Spec-Zone.ru

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