diff --git a/lib/bas/orchestrator/manager.rb b/lib/bas/orchestrator/manager.rb index d8fed33..8c1db8b 100644 --- a/lib/bas/orchestrator/manager.rb +++ b/lib/bas/orchestrator/manager.rb @@ -85,7 +85,9 @@ def current_day def execute(script) puts "Executing #{script[:path]} at #{current_time}" - system("ruby ", script[:path]) + absolute_path = File.expand_path(script[:path], __dir__) + + system("ruby", absolute_path) end end end