Sha256: 8b2a7b6f1067f29ac5e2ae38d6634356cbdbe1812e78ee995373b65918a5942b
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
class PuppetGhostbuster class Util class << self def search_file(name, search) return search_file_regexp(name, search) if search.is_a?(Regexp) File.foreach(name) do |line| return true if line.include?(search) end end def search_file_regexp(name, search) File.foreach(name) do |line| return true if line.match?(search) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-ghostbuster-1.2.1 | lib/puppet-ghostbuster/util.rb |
puppet-ghostbuster-1.2.0 | lib/puppet-ghostbuster/util.rb |