Class: Inspec::Targets::DirsHelper::ChefAuditDir
- Inherits:
-
Object
- Object
- Inspec::Targets::DirsHelper::ChefAuditDir
- Defined in:
- lib/inspec/targets/dir.rb
Instance Method Summary collapse
Instance Method Details
#get_filenames(paths) ⇒ Object
44 45 46 47 48 |
# File 'lib/inspec/targets/dir.rb', line 44 def get_filenames(paths) paths.find_all do |x| x.start_with? 'recipes/' and x.end_with? '.rb' end end |
#handles?(paths) ⇒ Boolean
40 41 42 |
# File 'lib/inspec/targets/dir.rb', line 40 def handles?(paths) paths.include?('recipes') and paths.include?('metadata.rb') end |