Module: CovLoupe::Resources

Defined in:
lib/cov_loupe/resources.rb

Constant Summary collapse

REPOSITORY_URL =
'https://github.com/keithrbennett/cov-loupe'
DOCUMENTATION_WEB_URL =
'https://keithrbennett.github.io/cov-loupe/'
SCREENCAST_URL =
'https://www.bbs-software.com/screencasts/cov-loupe'
LOCAL_README_PATH =
File.expand_path('../../README.md', __dir__).freeze
RESOURCE_MAP =

Canonical resource map – single source of truth for both CLI and MCP.

{
  'repo'       => REPOSITORY_URL,
  'docs'       => DOCUMENTATION_WEB_URL,
  'docs-local' => LOCAL_README_PATH,
}.freeze

Class Method Summary collapse

Class Method Details

.cli_url_for(name) ⇒ Object



17
18
19
20
# File 'lib/cov_loupe/resources.rb', line 17

def self.cli_url_for(name)
  RESOURCE_MAP[name] || (raise UsageError,
    "Unknown resource: '#{name}'. Valid resources: #{RESOURCE_MAP.keys.sort.join(', ')}")
end