Class: Twin::Conflict::Entry
- Inherits:
-
Struct
- Object
- Struct
- Twin::Conflict::Entry
- Defined in:
- lib/twin/conflict.rb
Overview
One file the target owns more recently than the source, with content that actually differs (or could not be checked — remote md5 failed — which is treated as differing, because guessing the other way would overwrite work). target_mtime is nil for remote targets.
Instance Attribute Summary collapse
-
#job ⇒ Object
Returns the value of attribute job.
-
#rel ⇒ Object
Returns the value of attribute rel.
-
#source_mtime ⇒ Object
Returns the value of attribute source_mtime.
-
#source_path ⇒ Object
Returns the value of attribute source_path.
-
#target_mtime ⇒ Object
Returns the value of attribute target_mtime.
-
#target_path ⇒ Object
Returns the value of attribute target_path.
Instance Method Summary collapse
Instance Attribute Details
#job ⇒ Object
Returns the value of attribute job
41 42 43 |
# File 'lib/twin/conflict.rb', line 41 def job @job end |
#rel ⇒ Object
Returns the value of attribute rel
41 42 43 |
# File 'lib/twin/conflict.rb', line 41 def rel @rel end |
#source_mtime ⇒ Object
Returns the value of attribute source_mtime
41 42 43 |
# File 'lib/twin/conflict.rb', line 41 def source_mtime @source_mtime end |
#source_path ⇒ Object
Returns the value of attribute source_path
41 42 43 |
# File 'lib/twin/conflict.rb', line 41 def source_path @source_path end |
#target_mtime ⇒ Object
Returns the value of attribute target_mtime
41 42 43 |
# File 'lib/twin/conflict.rb', line 41 def target_mtime @target_mtime end |
#target_path ⇒ Object
Returns the value of attribute target_path
41 42 43 |
# File 'lib/twin/conflict.rb', line 41 def target_path @target_path end |
Instance Method Details
#age_delta ⇒ Object
43 44 45 46 |
# File 'lib/twin/conflict.rb', line 43 def age_delta return nil unless source_mtime && target_mtime target_mtime - source_mtime end |