Class: VivlioStarter::CLI::UpgradeCommands::PlanItem

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio_starter/cli/upgrade.rb

Overview

計画表の 1 行。status: :add / :add_empty / :update / :merge / :conflict / :keep

merged … :merge のときだけ入る、3-way マージ後の中身 overlapping … :conflict のうち「祖先が取れたうえで衝突した」=双方が 本当に同じ場所を変えたもの。適用すれば著者の変更が消えるので、 そう名指しできる(祖先が取れなかった競合では断定できない)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(merged: nil, overlapping: false) ⇒ PlanItem

Returns a new instance of PlanItem.



56
# File 'lib/vivlio_starter/cli/upgrade.rb', line 56

def initialize(merged: nil, overlapping: false, **) = super

Instance Attribute Details

#mergedObject (readonly)

Returns the value of attribute merged

Returns:

  • (Object)

    the current value of merged



55
56
57
# File 'lib/vivlio_starter/cli/upgrade.rb', line 55

def merged
  @merged
end

#overlappingObject (readonly)

Returns the value of attribute overlapping

Returns:

  • (Object)

    the current value of overlapping



55
56
57
# File 'lib/vivlio_starter/cli/upgrade.rb', line 55

def overlapping
  @overlapping
end

#relativeObject (readonly)

Returns the value of attribute relative

Returns:

  • (Object)

    the current value of relative



55
56
57
# File 'lib/vivlio_starter/cli/upgrade.rb', line 55

def relative
  @relative
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



55
56
57
# File 'lib/vivlio_starter/cli/upgrade.rb', line 55

def status
  @status
end