Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0a1998fc44
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (30 sloc) 1.187 kb
desc "wettpool: load seed data for uss other pools"
task :load_uss_others => [:environment] do |t|
['services',
'austria/teams', 'austria/bl_2012_13', 'austria/cup_2012_13',
'euro/teams', 'world/quali_2012_13',
'cl/teams', 'cl/cl_2012_13',
'uss/users', 'uss/others_pools' ].each do |seed|
require "#{Rails.root}/db/seeds/#{seed}.rb"
end
end
desc "wettpool: load more seed data for bl cup 2 pool"
task :load_cup_ii => [:environment] do |t|
[ 'austria/cup_2012_13_2' ].each do |seed|
require "#{Rails.root}/db/seeds/#{seed}.rb"
end
end
desc "wettpool: load cl 2012/13 quotes for round 1"
task :load_cl_ii => [:environment] do |t|
[ 'cl/cl_2012_13_2' ].each do |seed|
require "#{Rails.root}/db/seeds/#{seed}.rb"
end
end
desc "wettpool: load data for uss other pools (others_data.txt)"
task :load_uss_others_data => [:environment] do |t|
update_import_export_keys()
data = File.read( "#{Rails.root}/db/seeds/uss/others_data.txt" )
import_backup_data( data )
## todo: use new version constant for app module e.g. Wettpool::VERSION ??
Prop.create!( :key => 'db.data.uss.others.version', :value => '1' )
end
Jump to Line
Something went wrong with that request. Please try again.