def pop_queue
      until @queue.empty?
        nextdir = File.join(repo_dir, @queue.pop)
        if File.directory?(nextdir)
          @next = find_next(Dir.new(nextdir))
          return @next
        else
          @logger.warn("When processing in #{@repository}, no such path #{nextdir}")
        end
      end
      @next = nil
    end
def pop_queue
      until @queue.empty?
        nextdir = File.join(repo_dir, @queue.pop)
        if File.directory?(nextdir)
          @next = find_next(Dir.new(nextdir))
          return @next
        else
          @logger.warn("When processing in #{@repository}, no such path #{nextdir}")
        end
      end
      @next = nil
    end
Initialize @next with the next resource

 === Returns
 @next(Resources::Base):: Next resource