mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 13:52:06 +08:00
14 lines
311 B
Ruby
14 lines
311 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiCli.on("sk").run_on("rename") do
|
|
desc "Rename an SSH public key"
|
|
|
|
banner "ubi sk (sk-id | sk-name) rename new-name"
|
|
|
|
args 1
|
|
|
|
run do |name|
|
|
@sdk_object.rename_to(name)
|
|
response("SSH public key with id #{@sdk_object.id} renamed to #{@sdk_object.name}")
|
|
end
|
|
end
|