Module: FasterPath::AssetResolution

Defined in:
lib/faster_path/asset_resolution.rb

Overview

BREAK IN CASE OF EMERGENCY ;-)

Class Method Summary collapse

Class Method Details

.verify!Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/faster_path/asset_resolution.rb', line 8

def verify!
  return lib_file if file?

  if rust?
    compile!
    raise "Rust failed to compile asset! The dynamic library for this package was not found." unless file?
    return lib_file
  end

  raise "The dynamic library for this package was not found nor was Rust's cargo executable found. This package will not work without it!"
end