Exception: Yoker::VersionManagerNotAvailableError

Inherits:
MissingDependencyError show all
Defined in:
lib/yoker/errors.rb

Overview

Raised when version manager is not available

Instance Method Summary collapse

Constructor Details

#initialize(manager) ⇒ VersionManagerNotAvailableError

Returns a new instance of VersionManagerNotAvailableError.



35
36
37
38
39
40
41
42
43
# File 'lib/yoker/errors.rb', line 35

def initialize(manager)
  hints = {
    "mise" => "Install with: curl https://mise.run | sh",
    "rbenv" => "Install with: brew install rbenv ruby-build",
    "rvm" => "Install with: \\curl -sSL https://get.rvm.io | bash"
  }

  super(manager, hints[manager])
end