Class: PuppetGenerator::ExportFilters::BuildRoleIncludesForDirectory
- Inherits:
-
Object
- Object
- PuppetGenerator::ExportFilters::BuildRoleIncludesForDirectory
- Includes:
- PuppetHelper
- Defined in:
- lib/puppet_generator/export_filters/build_role_includes_for_directory.rb
Instance Method Summary collapse
Methods included from PuppetHelper
#puppet_class_name, #puppet_manifest_path, #puppet_module_name, #puppet_module_path
Instance Method Details
#convert(objects) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/puppet_generator/export_filters/build_role_includes_for_directory.rb', line 7 def convert(objects) objects.collect do |o| path = o[:name] next unless directory? path result = { name: path, includes: includes(path), } end.compact end |