Class: Rails::Worktrees::ProjectMaintenance::Check

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails/worktrees/project_maintenance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#apply_messagesObject

Returns the value of attribute apply_messages

Returns:

  • (Object)

    the current value of apply_messages



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def apply_messages
  @apply_messages
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def category
  @category
end

#headlineObject

Returns the value of attribute headline

Returns:

  • (Object)

    the current value of headline



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def headline
  @headline
end

#identifierObject

Returns the value of attribute identifier

Returns:

  • (Object)

    the current value of identifier



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def identifier
  @identifier
end

#make_executableObject

Returns the value of attribute make_executable

Returns:

  • (Object)

    the current value of make_executable



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def make_executable
  @make_executable
end

#messagesObject

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def messages
  @messages
end

#relative_pathObject

Returns the value of attribute relative_path

Returns:

  • (Object)

    the current value of relative_path



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def relative_path
  @relative_path
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def status
  @status
end

#updated_contentObject

Returns the value of attribute updated_content

Returns:

  • (Object)

    the current value of updated_content



6
7
8
# File 'lib/rails/worktrees/project_maintenance.rb', line 6

def updated_content
  @updated_content
end

Instance Method Details

#fixable?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/rails/worktrees/project_maintenance.rb', line 22

def fixable?
  status == :fixable
end

#ok?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/rails/worktrees/project_maintenance.rb', line 18

def ok?
  status == :ok
end

#updatable?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/rails/worktrees/project_maintenance.rb', line 30

def updatable?
  !updated_content.nil?
end

#warning?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/rails/worktrees/project_maintenance.rb', line 26

def warning?
  status == :warning
end