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: rhsm_register.rb
    path of file: ./repos/chef/lib/chef/resource
    
    the code of the file until where you have to start completion: #
# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2
    
        def register_command
          command = %w{subscription-manager register}

          if new_resource.activation_key
            unless new_resource.activation_key.empty?
              raise "Unable to register - you must specify organization when using activation keys" if new_resource.organization.nil?

              command << new_resource.activation_key.map { |key| "--activationkey=#{Shellwords.shellescape(key)}" }
              command << "--org=#{Shellwords.shellescape(new_resource.organization)}"
              command << "--name=#{Shellwords.shellescape(new_resource.system_name)}" if new_resource.system_name
              command << "--serverurl=#{Shellwords.shellescape(new_resource.server_url)}" if new_resource.server_url
              command << "--baseurl=#{Shellwords.shellescape(new_resource.base_url)}" if new_resource.base_url
              command << "--release=#{Shellwords.shellescape(new_resource.release)}" if new_resource.release
              command << "--force" if new_resource.force

              return command.join(" ")
            end