Class: LinuxRunnerSpec Private

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

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, runner:, container: nil, workdir: nil, timeout:, cleanup:, testing_formulae: []) ⇒ void

Parameters:

  • name (String)
  • runner (String)
  • container (Hash, nil) (defaults to: nil)
  • workdir (String, nil) (defaults to: nil)
  • timeout (Integer)
  • cleanup (Boolean)
  • testing_formulae (Array<String>) (defaults to: [])


# File ''

const :name, String
const :runner, String
const :container, T.nilable({ image: String, options: String })
const :workdir, T.nilable(String)
const :timeout, Integer
const :cleanup, T::Boolean
prop  :testing_formulae, T::Array[String], default: []

Instance Attribute Details

#cleanupBoolean (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 cleanup.

Returns:

  • (Boolean)


# File ''

const :cleanup, T::Boolean

#containerHash? (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 container.

Returns:



# File ''

const :container, T.nilable({ image: String, options: String })

#nameString (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 name.

Returns:



# File ''

const :name, String

#runnerString (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 runner.

Returns:



# File ''

const :runner, String

#testing_formulaeArray<String>

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 testing_formulae.

Returns:



# File ''

prop  :testing_formulae, T::Array[String], default: []

#timeoutInteger (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 timeout.

Returns:



# File ''

const :timeout, Integer

#workdirString? (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 workdir.

Returns:



# File ''

const :workdir, T.nilable(String)

Instance Method Details

#to_hHash{Symbol => T.untyped}

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:



14
15
16
17
18
19
20
21
22
23
24
# File 'linux_runner_spec.rb', line 14

def to_h
  {
    name:,
    runner:,
    container:,
    workdir:,
    timeout:,
    cleanup:,
    testing_formulae: testing_formulae.join(","),
  }.compact
end