Exception: GemContribute::AuthRequired

Inherits:
Error
  • Object
show all
Defined in:
lib/gem_contribute/errors.rb

Overview

Raised by host adapters when an authenticated call is attempted without a cached token for that host. The TUI catches this and triggers device flow; CLI callers print a “run auth login” hint. See ADR-0001.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ AuthRequired

Returns a new instance of AuthRequired.



27
28
29
30
# File 'lib/gem_contribute/errors.rb', line 27

def initialize(host)
  @host = host
  super("authentication required for #{host}")
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



25
26
27
# File 'lib/gem_contribute/errors.rb', line 25

def host
  @host
end