Method: Avrolution::DiscoverSchemas.discover

Defined in:
lib/avrolution/discover_schemas.rb

.discover(path) ⇒ Object



5
6
7
8
9
10
# File 'lib/avrolution/discover_schemas.rb', line 5

def self.discover(path)
  vendor_bundle_path = File.join(path, 'vendor/bundle/')
  Dir[File.join(path, '**/*.avsc')].reject do |file|
    file.start_with?(vendor_bundle_path)
  end
end