Class: GitHubRunner
Instance Attribute Summary collapse
-
#active ⇒ Boolean
Returns the value of prop
active
. -
#arch ⇒ Symbol
readonly
Returns the value of prop
arch
. -
#macos_version ⇒ MacOSVersion?
readonly
Returns the value of prop
macos_version
. -
#platform ⇒ Symbol
readonly
Returns the value of prop
platform
. -
#spec ⇒ LinuxRunnerSpec, MacOSRunnerSpec
readonly
Returns the value of prop
spec
.
Instance Method Summary collapse
-
#arm64? ⇒ Boolean
-
#initialize(platform:, arch:, spec:, macos_version: nil, active: false) ⇒ void
constructor
-
#linux? ⇒ Boolean
-
#macos? ⇒ Boolean
-
#x86_64? ⇒ Boolean
Constructor Details
#initialize(platform:, arch:, spec:, macos_version: nil, active: false) ⇒ void
|
# 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
Returns the value of prop active
.
|
# File '' prop :active, T::Boolean, default: false |
#macos_version ⇒ MacOSVersion? (readonly)
Returns the value of prop macos_version
.
|
# File '' const :macos_version, T.nilable(MacOSVersion) |
#spec ⇒ LinuxRunnerSpec, MacOSRunnerSpec (readonly)
Returns the value of prop spec
.
|
# File '' const :spec, T.any(LinuxRunnerSpec, MacOSRunnerSpec) |
Instance Method Details
#arm64? ⇒ Boolean
30 31 32 |
# File 'github_runner.rb', line 30 def arm64? arch == :arm64 end |
#linux? ⇒ Boolean
20 21 22 |
# File 'github_runner.rb', line 20 def linux? platform == :linux end |
#macos? ⇒ Boolean
15 16 17 |
# File 'github_runner.rb', line 15 def macos? platform == :macos end |
#x86_64? ⇒ Boolean
25 26 27 |
# File 'github_runner.rb', line 25 def x86_64? arch == :x86_64 end |