Class: HunkReviewChanges::Installer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hunk_review_changes/installer/base.rb

Overview

Common interface for a per-agent install adapter. An adapter knows how to detect its agent and how to register the skill for it — either by calling the agent's own CLI (Claude Code) or by copying the skill out of the marketplace checkout into the directory that agent scans (Codex, Cursor, OpenCode).

Direct Known Subclasses

ClaudeCode, DirectoryInstaller

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Instance Method Details

#detected?Boolean

True when the agent is present on this machine (CLI on PATH or config dir).

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


17
# File 'lib/hunk_review_changes/installer/base.rb', line 17

def detected? = raise NotImplementedError

#install!(_source) ⇒ Object

Perform the install against a SkillSource; return a Result.

Raises:

  • (NotImplementedError)


20
# File 'lib/hunk_review_changes/installer/base.rb', line 20

def install!(_source) = raise NotImplementedError

#keyObject

Raises:

  • (NotImplementedError)


13
# File 'lib/hunk_review_changes/installer/base.rb', line 13

def key = raise NotImplementedError

#labelObject

Raises:

  • (NotImplementedError)


14
# File 'lib/hunk_review_changes/installer/base.rb', line 14

def label = raise NotImplementedError