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: commands.rb
    path of file: ./repos/webpacker/lib/webpacker
    
    the code of the file until where you have to start completion: class Webpacker::Commands
  delegate :config, :compiler, :manifest, :logger, to: :@webpacker

  def initialize(webpacker)
    @webpacker = webpacker
  end

  # Cleanup old assets in the compile directory. By default it will
  # keep the latest version, 2 backups created within the past hour.
  #
  # Examples
  #
  #   To force only 1 backup to be kept, set count=1 and age=0.
  #
  #   To only keep files created within the
    
  def clean(count = 2, age = 3600)
    if config.public_output_path.exist? && config.public_manifest_path.exist?
      packs
        .map do |paths|
          paths.map { |path| [Time.now - File.mtime(path), path] }
          .sort
          .reject.with_index do |(file_age, _), index|
            file_age < age || index < count
          end
          .map { |_, path| path }
        end
        .flatten
        .compact
        .each do |file|
          if File.file?(file)
            File.delete(file)
            logger.info "Removed #{file}"
          end
        end