Method: Inspec::DirProvider#initialize

Defined in:
lib/inspec/file_provider.rb

#initialize(path) ⇒ DirProvider

Returns a new instance of DirProvider.



54
55
56
57
58
59
60
61
# File 'lib/inspec/file_provider.rb', line 54

def initialize(path)
  @files = if File.file?(path)
             [path]
           else
             Dir[File.join(path, '**', '*')]
           end
  @path = path
end