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: download.rb
    path of file: ./repos/railsbox/app/domain/services
    
    the code of the file until where you have to start completion: require 'tmpdir'

module Services
  class Download
    class Archiver
      def initialize(dir)
        @dir = dir
      end

      def archive(zip_path)
        Zip::File.open(zip_path, Zip::File::CREATE) do |zipfile|
          add_recursive(zipfile, @dir)
       
    
      def build
        DeleteDownloadsJob.perform_now(File.join(TEMP_DIR, '*.zip'))

        zip_path = File.join(TEMP_DIR, File.basename(temp_dir) + '.zip')

        begin
          railsbox_dir = File.join(temp_dir, 'railsbox')
          Dir.mkdir(railsbox_dir)
          @configurator.save(railsbox_dir)
          Archiver.new(temp_dir).archive(zip_path)
        ensure
          FileUtils.remove_entry_secure temp_dir
        end