Class: GitHubRunnerMatrix
Instance Attribute Summary collapse
-
#runners ⇒ Object
readonly
Returns the value of attribute runners.
Instance Method Summary collapse
-
#active_runner_specs_hash ⇒ Array<RunnerSpecHash>
-
#initialize(testing_formulae, deleted_formulae, dependent_matrix:) ⇒ void
constructor
Constructor Details
#initialize(testing_formulae, deleted_formulae, dependent_matrix:) ⇒ void
45 46 47 48 49 50 51 52 53 54 |
# File 'github_runner_matrix.rb', line 45 def initialize(testing_formulae, deleted_formulae, dependent_matrix:) @testing_formulae = T.let(testing_formulae, T::Array[TestRunnerFormula]) @deleted_formulae = T.let(deleted_formulae, MaybeStringArray) @dependent_matrix = T.let(dependent_matrix, T::Boolean) @runners = T.let([], T::Array[GitHubRunner]) generate_runners! freeze end |
Instance Attribute Details
#runners ⇒ Object (readonly)
Returns the value of attribute runners.
36 37 38 |
# File 'github_runner_matrix.rb', line 36 def runners @runners end |
Instance Method Details
#active_runner_specs_hash ⇒ Array<RunnerSpecHash>
57 58 59 60 61 |
# File 'github_runner_matrix.rb', line 57 def active_runner_specs_hash runners.select(&:active) .map(&:spec) .map(&:to_h) end |