Sha256: 8c7b2538485d0918923088e77bd1a97f456d2268614fa7c7be735957217c1a9a
Contents?: true
Size: 270 Bytes
Versions: 4
Compression:
Stored size: 270 Bytes
Contents
require 'technologist/rules/rule' class FileContentRule < Rule attr_accessor :file_name, :file_content_pattern def matches?(repository) !!repository.file_with_content_exists?(file_name) do |content| content =~ /#{file_content_pattern}/ end end end
Version data entries
4 entries across 4 versions & 1 rubygems