Class: Inspec::Targets::ServerspecDir
- Inherits:
-
Object
- Object
- Inspec::Targets::ServerspecDir
- Defined in:
- lib/inspec/targets/dir.rb
Instance Method Summary collapse
Instance Method Details
#get_filenames(paths) ⇒ Object
124 125 126 127 128 |
# File 'lib/inspec/targets/dir.rb', line 124 def get_filenames(paths) paths.find_all do |path| path.start_with? 'spec' and path.end_with? '_spec.rb' end end |
#handles?(paths) ⇒ Boolean
120 121 122 |
# File 'lib/inspec/targets/dir.rb', line 120 def handles?(paths) paths.include?('spec') end |