def find_next(dir)
      @logger.operation(:finding_next_cookbook, "in #{dir.path}") do
        if COOKBOOK_SENTINELS.any? { |f| File.exists?(File.join(dir.path, f)) }
          @logger.operation(:reading_cookbook, "from #{dir.path}") do
            cookbook = RightScraper::Resources::Cookbook.new(
              @repository,
              strip_repo_dir(dir.path),
              repo_dir)
            @builder.go(dir.path, cookbook)
            cookbook
          end
        else
          @stack << dir
          search_dirs
        end
      end
    end
def find_next(dir)
      @logger.operation(:finding_next_cookbook, "in #{dir.path}") do
        if COOKBOOK_SENTINELS.any? { |f| File.exists?(File.join(dir.path, f)) }
          @logger.operation(:reading_cookbook, "from #{dir.path}") do
            cookbook = RightScraper::Resources::Cookbook.new(
              @repository,
              strip_repo_dir(dir.path),
              repo_dir)
            @builder.go(dir.path, cookbook)
            cookbook
          end
        else
          @stack << dir
          search_dirs
        end
      end
    end
Find the next cookbook, starting in dir.

 === Parameters
 dir(Dir):: directory to begin search in