Added passeneg manager. Part 5

This commit is contained in:
Alexey Berezhok
2024-12-17 23:47:00 +03:00
parent d3f7451c9b
commit c572522f43
6 changed files with 113 additions and 4 deletions

View File

@@ -164,9 +164,16 @@ class PassengerWorker < Kernel::ModuleCoreWorker
val = hestia_get_file_key_pair(dom_file, domain)
result = Hash.new
result["RUBY"] = val
hestia_print_array_of_hashes(result, format, "RUBY")
a_result = []
a_result << result
hestia_print_array_of_hashes(a_result, format, "RUBY")
ACTION_OK
end
when "get_tpl_path"
result = [{ "RUBY_TPL" => get_module_paydata_dir }]
format = (args[1].nil? ? "shell" : args[1].strip)
hestia_print_array_of_hashes(result, format, "RUBY_TPL")
ACTION_OK
else
log_return("Unknown commands. #{args}")
end