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



68
69
70
# File 'lib/inspec/targets/dir.rb', line 68

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

#handles?(paths) ⇒ Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/inspec/targets/dir.rb', line 64

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