Class: LogicalConstruct::ResolutionServer::ResolutionMethods::ResolutionMethod

Inherits:
Object
  • Object
show all
Includes:
FileTest, Protocol::PlanValidation
Defined in:
lib/logical-construct/target/plan-records.rb

Direct Known Subclasses

LocalStorage

Constant Summary

Constants included from Protocol::PlanValidation

Protocol::PlanValidation::BIG_CHUNK

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#stateObject (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

Returns:

  • (Boolean)


288
289
290
# File 'lib/logical-construct/target/plan-records.rb', line 288

def exists?(path)
  super(realpath(path))
end

#runObject



297
298
299
# File 'lib/logical-construct/target/plan-records.rb', line 297

def run

end