class Chef::Knife::OneandoneSshKeyRename

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/oneandone_ssh_key_rename.rb, line 24
def run
  $stdout.sync = true

  init_client

  ssh_key = OneAndOne::SshKey.new
  response = ssh_key.modify(ssh_key_id: config[:id], name: config[:name], description: config[:description])

  formated_output(response, true)
  puts "SSH Key updated #{ui.color('updated', :bold)}"
end