Class: ClaudeMemory::Commands::Checks::SnapshotCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_memory/commands/checks/snapshot_check.rb

Overview

Checks if published snapshot exists

Constant Summary collapse

SNAPSHOT_PATH =
".claude/rules/claude_memory.generated.md"

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/claude_memory/commands/checks/snapshot_check.rb', line 10

def call
  if File.exist?(SNAPSHOT_PATH)
    {
      status: :ok,
      label: "snapshot",
      message: "Published snapshot exists",
      details: {path: SNAPSHOT_PATH}
    }
  else
    {
      status: :warning,
      label: "snapshot",
      message: "No published snapshot found. Run 'claude-memory publish'",
      details: {path: SNAPSHOT_PATH}
    }
  end
end