Class: Twin::Conflict::Drift

Inherits:
Struct
  • Object
show all
Defined in:
lib/twin/conflict.rb

Overview

The classified outcome of a forced dry-run for one job. pending — relative paths a sync would genuinely change time_only — same bytes, different timestamp; a sync merely aligns them conflicts — Entry list: target-side changes whose content differs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#conflictsObject

Returns the value of attribute conflicts

Returns:

  • (Object)

    the current value of conflicts



33
34
35
# File 'lib/twin/conflict.rb', line 33

def conflicts
  @conflicts
end

#pendingObject

Returns the value of attribute pending

Returns:

  • (Object)

    the current value of pending



33
34
35
# File 'lib/twin/conflict.rb', line 33

def pending
  @pending
end

#time_onlyObject

Returns the value of attribute time_only

Returns:

  • (Object)

    the current value of time_only



33
34
35
# File 'lib/twin/conflict.rb', line 33

def time_only
  @time_only
end

Instance Method Details

#in_sync?Boolean

Returns:

  • (Boolean)


34
# File 'lib/twin/conflict.rb', line 34

def in_sync? = pending.empty? && conflicts.empty?