Class: Inspec::Targets::DirsHelper::ChefAuditDir

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec/targets/dir.rb

Instance Method Summary collapse

Instance Method Details

#get_filenames(paths) ⇒ Object



46
47
48
49
50
# File 'lib/inspec/targets/dir.rb', line 46

def get_filenames(paths)
  paths.find_all do |x|
    x.start_with? 'recipes/' and x.end_with? '.rb'
  end
end

#handles?(paths) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/inspec/targets/dir.rb', line 42

def handles?(paths)
  paths.include?('recipes') and paths.include?('metadata.rb')
end