Sha256: b4ef41f7f49e905471c4a7ca7557332076c4d82c22dae6e15b30fb703e6b1081
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true module HeavyControl module Extensions module IgnoreSubfolders def search_for_file(path_suffix) base_result = super(path_suffix) return base_result if base_result HeavyControl.config[:ignore_subfolders].each do |subfolder| new_path_suffix = File.join File.split(path_suffix).insert(-2, subfolder) result = super(new_path_suffix) return result if result end nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heavy_control-0.1.2 | lib/heavy_control/extensions/ignore_subfolders.rb |