This commit is contained in:
Artur Gurgul 2025-08-01 20:11:48 +02:00
parent b3dba4542f
commit 0c98334d1c
9 changed files with 151 additions and 0 deletions

View file

@ -36,7 +36,15 @@ module Make
@name = options.name
@use_cache = options.use_cache || false
#System.detect_os
# rbenv: brew install rbenv && rbenv install 3.0.0
# asdf: asdf install ruby 3.0.0
makefile_path = "#{ENV["DAT_ROOT"]}/recipes/#{@name}.yml"
unless File.file?(makefile_path)
makefile_path = "#{ENV["DAT_ROOT"]}/recipes/#{@name}/#{System.detect_os}.yml"
end
puts "recipe at: #{makefile_path}"
makefile = YAML.load_file(makefile_path)