Class: MilkTea::PackageLock::CheckResult

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/packages/lock.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actual_contentObject (readonly)

Returns the value of attribute actual_content

Returns:

  • (Object)

    the current value of actual_content



12
13
14
# File 'lib/milk_tea/packages/lock.rb', line 12

def actual_content
  @actual_content
end

#expected_contentObject (readonly)

Returns the value of attribute expected_content

Returns:

  • (Object)

    the current value of expected_content



12
13
14
# File 'lib/milk_tea/packages/lock.rb', line 12

def expected_content
  @expected_content
end

#lock_pathObject (readonly)

Returns the value of attribute lock_path

Returns:

  • (Object)

    the current value of lock_path



12
13
14
# File 'lib/milk_tea/packages/lock.rb', line 12

def lock_path
  @lock_path
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



12
13
14
# File 'lib/milk_tea/packages/lock.rb', line 12

def status
  @status
end

Instance Method Details

#current?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/milk_tea/packages/lock.rb', line 13

def current?
  status == :current
end

#missing?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/milk_tea/packages/lock.rb', line 17

def missing?
  status == :missing
end

#stale?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/milk_tea/packages/lock.rb', line 21

def stale?
  status == :stale
end