Class: Homebrew::DevCmd::MirrorAttestations::Report Private

Inherits:
T::Struct
  • Object
show all
Defined in:
dev-cmd/mirror-attestations.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(bottles:, census:, problems:, complete: false) ⇒ void

Parameters:

  • bottles (Hash{String => Integer})
  • census (Hash{Array<String> => Array<Integer>}) —

    Sizes in bytes of the valid bundles seen, by signer, bundle format and log entry kind.

  • problems (Array<String>)
  • complete (Boolean) (defaults to: false) —

    Whether every formula was counted, which a run that stops early has not done.



# File ''

const :bottles, T::Hash[String, Integer], factory: -> { {} }
const :census, T::Hash[T::Array[String], T::Array[Integer]], factory: -> { {} }
const :problems, T::Array[String], factory: -> { [] }
prop :complete, T::Boolean, default: false

Instance Attribute Details

#bottles ⇒ Hash{String => Integer} (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 bottles.

Returns:



# File ''

const :bottles, T::Hash[String, Integer], factory: -> { {} }

#census ⇒ Hash{Array<String> => Array<Integer>} (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.

Sizes in bytes of the valid bundles seen, by signer, bundle format and log entry kind.

Returns:



# File ''

const :census, T::Hash[T::Array[String], T::Array[Integer]], factory: -> { {} }

#complete ⇒ 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.

Whether every formula was counted, which a run that stops early has not done.

Returns:

  • (Boolean)


# File ''

prop :complete, T::Boolean, default: false

#problems ⇒ Array<String> (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 problems.

Returns:



# File ''

const :problems, T::Array[String], factory: -> { [] }

Instance Method Details

#add(outcome, count = 1) ⇒ void

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.

This method returns an undefined value.

Parameters:

  • outcome (String)
  • count (Integer) (defaults to: 1)


50
51
52
# File 'dev-cmd/mirror-attestations.rb', line 50

def add(outcome, count = 1)
  bottles[outcome] = bottles.fetch(outcome, 0) + count
end