# File lib/puppet/provider/selmodule/semodule.rb, line 21
21:   def exists?
22:     self.debug "Checking for module #{@resource[:name]}"
23:     execpipe("#{command(:semodule)} --list") do |out|
24:       out.each do |line|
25:         if line =~ /#{@resource[:name]}\b/
26:           return :true
27:         end
28:       end
29:     end
30:     nil
31:   end