brew/Library/Homebrew/macos_runner_spec.rb

30 lines
583 B
Ruby
Raw Permalink Normal View History

# typed: strict
# frozen_string_literal: true
class MacOSRunnerSpec < T::Struct
const :name, String
const :runner, String
const :timeout, Integer
const :cleanup, T::Boolean
prop :testing_formulae, T::Array[String], default: []
sig {
returns({
name: String,
runner: String,
timeout: Integer,
cleanup: T::Boolean,
testing_formulae: String,
})
}
def to_h
{
2024-03-07 16:20:20 +00:00
name:,
runner:,
timeout:,
cleanup:,
testing_formulae: testing_formulae.join(","),
}
end
end