Class: Agent::Lock::Skill::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/agent/lock/skill.rb

Overview

What #install did, and where.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#path ⇒ Object (readonly)

Returns the value of attribute path

Returns:

  • (Object) —

    the current value of path



24
25
26
# File 'lib/agent/lock/skill.rb', line 24

def path
  @path
end

#status ⇒ Object (readonly)

Returns the value of attribute status

Returns:

  • (Object) —

    the current value of status



24
25
26
# File 'lib/agent/lock/skill.rb', line 24

def status
  @status
end

Instance Method Details

#code ⇒ Integer

Returns 1 when the install was refused, 0 otherwise.

Returns:

  • (Integer) —

    1 when the install was refused, 0 otherwise



26
# File 'lib/agent/lock/skill.rb', line 26

def code = %i[differs linked].include?(status) ? 1 : 0