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.
8 lines
354 B
Ruby
8 lines
354 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiRodish.on("pg").run_is("add-firewall-rule", args: 1, invalid_args_message: "cidr is required") do |cidr|
|
|
post(project_path("location/#{@location}/postgres/#{@name}/firewall-rule"), "cidr" => cidr) do |data|
|
|
["Firewall rule added to PostgreSQL database.\n rule id: #{data["id"]}, cidr: #{data["cidr"]}"]
|
|
end
|
|
end
|