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. same_content is nil when it could not be determined
(remote targets) — treated as a conflict, because guessing in the other
direction would overwrite work.
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
38 39 40 |
# File 'lib/twin/conflict.rb', line 38 def job @job end |
#rel ⇒ Object
Returns the value of attribute rel
38 39 40 |
# File 'lib/twin/conflict.rb', line 38 def rel @rel end |
#source_mtime ⇒ Object
Returns the value of attribute source_mtime
38 39 40 |
# File 'lib/twin/conflict.rb', line 38 def source_mtime @source_mtime end |
#source_path ⇒ Object
Returns the value of attribute source_path
38 39 40 |
# File 'lib/twin/conflict.rb', line 38 def source_path @source_path end |
#target_mtime ⇒ Object
Returns the value of attribute target_mtime
38 39 40 |
# File 'lib/twin/conflict.rb', line 38 def target_mtime @target_mtime end |
#target_path ⇒ Object
Returns the value of attribute target_path
38 39 40 |
# File 'lib/twin/conflict.rb', line 38 def target_path @target_path end |
Instance Method Details
#age_delta ⇒ Object
40 41 42 43 |
# File 'lib/twin/conflict.rb', line 40 def age_delta return nil unless source_mtime && target_mtime target_mtime - source_mtime end |