You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: login_command.rb
    path of file: ./repos/kontena/cli/lib/kontena/cli/master
    
    the code of the file until where you have to start completion: require 'uri'

module Kontena::Cli::Mast
    
    def update_server_to_config(server)
      server.name ||= next_default_name
      config.servers << server unless config.servers.include?(server)
      config.current_master = server.name
      config.write
      config.reset_instance
    end