mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
14 lines
292 B
Text
14 lines
292 B
Text
|
|
task :default do
|
||
|
|
begin
|
||
|
|
load "./config.rb" # loads CONFIG
|
||
|
|
if defined?(CONFIG) && CONFIG[:runtime] && CONFIG[:plugins]
|
||
|
|
system("ruby graft.rb")
|
||
|
|
else
|
||
|
|
puts("Config is not appropriate.")
|
||
|
|
exit 1
|
||
|
|
end
|
||
|
|
rescue => e
|
||
|
|
puts("Task failed: #{e.message}")
|
||
|
|
end
|
||
|
|
end
|