Class: HunkReviewChanges::Installer::Cursor

Inherits:
DirectoryInstaller show all
Defined in:
lib/hunk_review_changes/installer/cursor.rb

Overview

Cursor reads user-level skills from ~/.cursor/skills.

Instance Method Summary collapse

Methods inherited from DirectoryInstaller

#install!

Methods inherited from Base

#install!

Instance Method Details

#detected?Boolean

Returns:

  • (Boolean)


12
13
14
15
# File 'lib/hunk_review_changes/installer/cursor.rb', line 12

def detected?
  command_on_path?("cursor-agent") || command_on_path?("cursor") ||
    File.directory?(home(".cursor"))
end

#keyObject



9
# File 'lib/hunk_review_changes/installer/cursor.rb', line 9

def key = :cursor

#labelObject



10
# File 'lib/hunk_review_changes/installer/cursor.rb', line 10

def label = "Cursor"

#skills_rootObject



17
18
19
# File 'lib/hunk_review_changes/installer/cursor.rb', line 17

def skills_root
  home(".cursor", "skills")
end