Method: Inspec::Resources::MysqlConf#include_files
- Defined in:
- lib/resources/mysql_conf.rb
#include_files(reldir, conf) ⇒ Object
101 102 103 104 105 106 107 108 109 |
# File 'lib/resources/mysql_conf.rb', line 101 def include_files(reldir, conf) files = conf.scan(/^!include\s+(.*)\s*/).flatten.compact.map { |x| abs_path(reldir, x) } dirs = conf.scan(/^!includedir\s+(.*)\s*/).flatten.compact.map { |x| abs_path(reldir, x) } dirs.map do |dir| # @TODO: non local glob files += find_files(dir, depth: 1, type: 'file') end files end |