Class: LogicalConstruct::ResolutionServer::ResolutionMethods::ResolutionMethod
- Inherits:
-
Object
- Object
- LogicalConstruct::ResolutionServer::ResolutionMethods::ResolutionMethod
- Includes:
- FileTest, Protocol::PlanValidation
- Defined in:
- lib/logical-construct/target/plan-records.rb
Direct Known Subclasses
Constant Summary
Constants included from Protocol::PlanValidation
Protocol::PlanValidation::BIG_CHUNK
Instance Attribute Summary collapse
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
- #exists?(path) ⇒ Boolean
-
#initialize(state) ⇒ ResolutionMethod
constructor
A new instance of ResolutionMethod.
- #run ⇒ Object
Methods included from Protocol::PlanValidation
#check_digest, #chunk_size, #digest, #file_checksum, #generate_checksum, #realpath
Constructor Details
#initialize(state) ⇒ ResolutionMethod
Returns a new instance of ResolutionMethod.
292 293 294 |
# File 'lib/logical-construct/target/plan-records.rb', line 292 def initialize(state) @state = state end |
Instance Attribute Details
#state ⇒ Object (readonly)
Returns the value of attribute state.
295 296 297 |
# File 'lib/logical-construct/target/plan-records.rb', line 295 def state @state end |
Class Method Details
.register(name) ⇒ Object
284 285 286 |
# File 'lib/logical-construct/target/plan-records.rb', line 284 def self.register(name) ResolutionMethods.add_method(name, self) end |
Instance Method Details
#exists?(path) ⇒ Boolean
288 289 290 |
# File 'lib/logical-construct/target/plan-records.rb', line 288 def exists?(path) super(realpath(path)) end |
#run ⇒ Object
297 298 299 |
# File 'lib/logical-construct/target/plan-records.rb', line 297 def run end |