Rakefile 876 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # frozen_string_literal: true
  2. # sharable_constant_value: literal
  3. require 'bundler'
  4. Bundler.require
  5. require 'rubocop/rake_task'
  6. RuboCop::RakeTask.new
  7. task default: %w[relations validate registry]
  8. desc 'Reads in the MRI dumps, builds a web of relationships from them, and stores the results in the database.'
  9. task :relations do
  10. # Bash: cd lib && ruby build_relations.rb
  11. Dir.chdir 'lib' do
  12. load 'build_relations.rb', true
  13. end
  14. end
  15. desc 'Verifies that the read MRI data in the database is from the expected collector.'
  16. task :validate do
  17. # Bash: cd lib && ruby validate_collector.rb
  18. Dir.chdir 'lib' do
  19. load 'validate_collector.rb', true
  20. end
  21. end
  22. desc 'Reads the registry, creates objects from it and writes it to the database.'
  23. task :registry do
  24. # Bash: cd lib && ruby build_registry.rb
  25. Dir.chdir 'lib' do
  26. load 'build_registry.rb', true
  27. end
  28. end