12345678910111213141516171819202122232425262728293031323334353637 |
- # frozen_string_literal: true
- # sharable_constant_value: literal
- require 'bundler'
- Bundler.require
- require 'rubocop/rake_task'
- RuboCop::RakeTask.new
- task default: %w[relations validate registry]
- desc 'Reads in the MRI dumps, builds a web of relationships from them, and stores the results in the database.'
- task :relations do
- # Bash: cd lib && ruby build_relations.rb
- Dir.chdir 'lib' do
- load 'build_relations.rb', true
- end
- end
- desc 'Verifies that the read MRI data in the database is from the expected collector.'
- task :validate do
- # Bash: cd lib && ruby validate_collector.rb
- Dir.chdir 'lib' do
- load 'validate_collector.rb', true
- end
- end
- desc 'Reads the registry, creates objects from it and writes it to the database.'
- task :registry do
- # Bash: cd lib && ruby build_registry.rb
- Dir.chdir 'lib' do
- load 'build_registry.rb', true
- end
- end
|