Files
ubicloud/cli-commands/pg/post/failover.rb
Jeremy Evans cbf2d95cbb Revert the backout of the CLI support
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.
2025-02-11 16:09:46 -08:00

8 lines
239 B
Ruby

# frozen_string_literal: true
UbiRodish.on("pg").run_is("failover") do
post(project_path("location/#{@location}/postgres/#{@name}/failover")) do |data|
["Failover initiated for PostgreSQL database with id: #{data["id"]}"]
end
end