Class: Inspec::Targets::DirsHelper::FlatDir

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

Instance Method Summary collapse

Instance Method Details

#get_filenames(paths) ⇒ Object



70
71
72
# File 'lib/inspec/targets/dir.rb', line 70

def get_filenames(paths)
  paths.find_all { |x| x.end_with?('.rb') and !x.include?('/') }
end

#handles?(paths) ⇒ Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/inspec/targets/dir.rb', line 66

def handles?(paths)
  get_filenames(paths).empty? == false
end