This reverts commit b741fe9005
.
This was backed out as problems started occuring shortly after
a large CLI pull request was merged. However, log analysis
shows that the CLI was unrelated to the problems.
12 lines
424 B
Ruby
12 lines
424 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiRodish.on("pg").run_is("restore", args: 2, invalid_args_message: "name and restore target are required") do |name, restore_target|
|
|
params = {
|
|
"name" => name,
|
|
"restore_target" => restore_target
|
|
}
|
|
post(project_path("location/#{@location}/postgres/#{@name}/restore"), params) do |data|
|
|
["Restored PostgreSQL database scheduled for creation with id: #{data["id"]}"]
|
|
end
|
|
end
|