Exception: Javy::InstallationError

Inherits:
Error
  • Object
show all
Defined in:
ext/javy/javy.rb

Class Method Summary collapse

Class Method Details

.asset_not_found(platform:, version:, url:) ⇒ Object



92
93
94
95
96
97
98
99
100
# File 'ext/javy/javy.rb', line 92

def self.asset_not_found(platform:, version:, url:)
  new(format(
    "Unable to download javy %{version} for %{os} (%{cpu}) at %{url}",
    version: version,
    os: platform.os,
    cpu: platform.cpu,
    url: url
  ))
end

.cpu_unsupportedObject



88
89
90
# File 'ext/javy/javy.rb', line 88

def self.cpu_unsupported
  new("Javy is not supported on this CPU")
end

.invalid_binaryObject



102
103
104
# File 'ext/javy/javy.rb', line 102

def self.invalid_binary
  new("Invalid Javy binary downloaded.")
end