Class: HunkReviewChanges::Installer::Base
- Inherits:
-
Object
- Object
- HunkReviewChanges::Installer::Base
- 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
Defined Under Namespace
Classes: Result
Instance Method Summary collapse
-
#detected? ⇒ Boolean
True when the agent is present on this machine (CLI on PATH or config dir).
-
#install!(_source) ⇒ Object
Perform the install against a SkillSource; return a Result.
- #key ⇒ Object
- #label ⇒ Object
Instance Method Details
#detected? ⇒ Boolean
True when the agent is present on this machine (CLI on PATH or config dir).
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.
20 |
# File 'lib/hunk_review_changes/installer/base.rb', line 20 def install!(_source) = raise NotImplementedError |
#key ⇒ Object
13 |
# File 'lib/hunk_review_changes/installer/base.rb', line 13 def key = raise NotImplementedError |
#label ⇒ Object
14 |
# File 'lib/hunk_review_changes/installer/base.rb', line 14 def label = raise NotImplementedError |