Class: GitHubRunner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Parameters:



# 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

#activeBoolean

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

#archSymbol (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:



# File ''

const :arch, Symbol

#macos_versionMacOSVersion? (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:



# File ''

const :macos_version, T.nilable(MacOSVersion)

#platformSymbol (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:



# File ''

const :platform, Symbol

#specLinuxRunnerSpec, 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.



# 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