Class: CodesignRequirement Private
- Inherits:
-
Requirement
- Object
- Requirement
- CodesignRequirement
- Defined in:
- requirements/codesign_requirement.rb,
sorbet/rbi/dsl/codesign_requirement.rbi
Overview
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.
A requirement on a code-signing identity.
Constant Summary
Constants included from Dependable
Instance Attribute Summary
Attributes inherited from Requirement
Attributes included from Dependable
Instance Method Summary collapse
-
#initialize(tags) ⇒ CodesignRequirement
constructor
private
A new instance of CodesignRequirement.
- #message ⇒ String private
Methods inherited from Requirement
cask, #display_s, download, #env, env, #env_proc, expand, fatal, #fatal?, #mktemp, #modify_build_environment, #option_names, prune, prune?, #satisfied?, #satisfied_result_parent, satisfy
Methods included from BuildEnvironment::DSL
Methods included from Cachable
Methods included from Attrable
Methods included from Dependable
#build?, #implicit?, #option_tags, #optional?, #options, #prune_from_option?, #prune_if_build_and_not_dependent?, #recommended?, #required?, #test?
Constructor Details
#initialize(tags) ⇒ CodesignRequirement
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 a new instance of CodesignRequirement.
8 9 10 11 12 13 14 15 16 17 |
# File 'requirements/codesign_requirement.rb', line 8 def initialize() = .shift raise ArgumentError, "CodesignRequirement requires an options Hash!" unless .is_a?(Hash) raise ArgumentError, "CodesignRequirement requires an identity key!" unless .key?(:identity) @identity = .fetch(:identity) @with = .fetch(:with, "code signing") @url = .fetch(:url, nil) super end |
Instance Method Details
#message ⇒ 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.
29 30 31 32 33 |
# File 'requirements/codesign_requirement.rb', line 29 def = "#{@identity} identity must be available to build with #{@with}" += ":\n#{@url}" if @url.present? end |