Method: XinetdParser#xinetd_include_dir
- Defined in:
- lib/utils/parser.rb
#xinetd_include_dir(dir) ⇒ Object
184 185 186 187 188 189 190 191 192 193 |
# File 'lib/utils/parser.rb', line 184 def xinetd_include_dir(dir) return [] if dir.nil? unless inspec.file(dir).directory? return skip_resource "Cannot read folder in #{dir}" end files = inspec.command("find #{dir} -type f").stdout.split("\n") files.map { |file| parse_xinetd(read_content(file)) } end |