Class: ResourceStageContext Private
- Extended by:
- Forwardable
- Defined in:
- resource.rb,
sorbet/rbi/dsl/resource_stage_context.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.
The context in which a Resource#stage occurs. Supports access to both the Resource and associated Mktemp in a single block argument. The interface is back-compatible with Resource itself as used in that context.
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
private
The Resource that is being staged.
- #staging ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(resource, staging) ⇒ ResourceStageContext
constructor
private
A new instance of ResourceStageContext.
- #mirrors(*args, &block) ⇒ T.untyped private
- #retain!(*args, &block) ⇒ T.untyped private
- #source_modified_time(*args, &block) ⇒ T.untyped private
- #specs(*args, &block) ⇒ T.untyped private
- #url(*args, &block) ⇒ T.untyped private
- #using(*args, &block) ⇒ T.untyped private
- #version(*args, &block) ⇒ T.untyped private
Constructor Details
#initialize(resource, staging) ⇒ ResourceStageContext
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 ResourceStageContext.
407 408 409 410 |
# File 'resource.rb', line 407 def initialize(resource, staging) @resource = resource @staging = staging end |
Instance Attribute Details
#resource ⇒ Object (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.
The Resource that is being staged.
399 400 401 |
# File 'resource.rb', line 399 def resource @resource end |
#staging ⇒ Object (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.
402 403 404 |
# File 'resource.rb', line 402 def staging @staging end |
Instance Method Details
#mirrors(*args, &block) ⇒ 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.
10 |
# File 'sorbet/rbi/dsl/resource_stage_context.rbi', line 10 def mirrors(*args, &block); end |
#retain!(*args, &block) ⇒ 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.
13 |
# File 'sorbet/rbi/dsl/resource_stage_context.rbi', line 13 def retain!(*args, &block); end |
#source_modified_time(*args, &block) ⇒ 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.
16 |
# File 'sorbet/rbi/dsl/resource_stage_context.rbi', line 16 def source_modified_time(*args, &block); end |
#specs(*args, &block) ⇒ 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.
19 |
# File 'sorbet/rbi/dsl/resource_stage_context.rbi', line 19 def specs(*args, &block); end |
#url(*args, &block) ⇒ 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.
22 |
# File 'sorbet/rbi/dsl/resource_stage_context.rbi', line 22 def url(*args, &block); end |
#using(*args, &block) ⇒ 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.
25 |
# File 'sorbet/rbi/dsl/resource_stage_context.rbi', line 25 def using(*args, &block); end |
#version(*args, &block) ⇒ 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.
28 |
# File 'sorbet/rbi/dsl/resource_stage_context.rbi', line 28 def version(*args, &block); end |