Class: Kompo::KompoVfsPath::FromLocal
- Inherits:
-
Taski::Task
- Object
- Taski::Task
- Kompo::KompoVfsPath::FromLocal
- Defined in:
- lib/kompo/tasks/kompo_vfs_path.rb
Overview
Build from local directory (requires Cargo)
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/kompo/tasks/kompo_vfs_path.rb', line 32 def run local_path = Taski.args[:local_kompo_vfs_path] raise "Local kompo-vfs path not specified" unless local_path raise "Local kompo-vfs path does not exist: #{local_path}" unless Dir.exist?(local_path) puts "Building kompo-vfs from local directory: #{local_path}" cargo = CargoPath.path raise "Failed to build kompo-vfs" unless system(cargo, "build", "--release", chdir: local_path) @path = File.join(local_path, "target", "release") puts "kompo-vfs library path: #{@path}" KompoVfsVersionCheck.verify!(@path) end |