Skip to content

Commit

Permalink
A basic rake task to seed the catalog from all the storage roots.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy Ingulfsen committed Nov 8, 2017
1 parent 67640d7 commit 63a90da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ task default: [:spec, :rubocop]
task :travis_setup_postgres do
sh("psql -U postgres -f db/scripts/pres_test_setup.sql")
end

require_relative 'lib/audit/moab_to_catalog'
task seed_catalog: :environment do
m2c = MoabToCatalog.new
puts "Seeding the database from all storage roots..."
m2c.seed_from_disk
puts "Done"
end

0 comments on commit 63a90da

Please sign in to comment.