1
0
Fork 0
oldhaven/lib/tasks/db_import.rake

13 lines
313 B
Ruby
Raw Normal View History

2011-06-14 20:01:42 +00:00
require 'uri'
require 'open-uri'
2011-06-14 16:05:12 +00:00
namespace :db do
desc 'Imports test data from MusicBrainz database'
2011-06-14 16:05:12 +00:00
task :import => :environment do
2011-06-27 11:14:14 +00:00
ati = ['Ashes Divide']
2011-06-14 18:06:46 +00:00
ati.each do |name|
ImportController.importArtist(name)
2011-06-18 15:58:51 +00:00
#ap res = ArtistController.musicBrainzExactSearch(name)
2011-06-14 18:06:46 +00:00
end
2011-06-14 16:05:12 +00:00
end
end