Class: Suspect::Prediction::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/suspect/prediction/default.rb

Class Method Summary collapse

Class Method Details

.pathsObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/suspect/prediction/default.rb', line 11

def paths
  root_path = ::Pathname.new('.')
  structure = ::Suspect::Setup::Structure.new(root_path)
  storage_path = structure.storage_path
  file_helper = ::Suspect::FileUtils::Idempotent.new
  reader = ::Suspect::Storage::Reader.new(storage_path, file_helper)
  file_tree = ::Suspect::FileTree::Git::Snapshot.new

  Naive::AllFound.new(reader, file_tree).paths
end