Sha256: ecfe09ae4a4180d336f756310bec7f3a09e925c2d373e17b771b3b2600afb655
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
namespace :sync do task :records => :environment do system_setting = SystemSetting.singleton puts system_setting.sync end task :gamespy => :environment do puts "Fetching server info..." geo = ENV['NOGEO'] ? "" : nil puts "Pings and Countries: #{geo.nil?}" puts q = Six::Query::GamespyMaster.new(geo) h = q.process puts puts "Received #{h.size} servers" puts puts "Updating database..." h.each_pair do |key, e| Queryserver.import(e) end puts "Pruning database..." Queryserver.prune puts "Cleaning database..." Queryserver.clean end task :system => :environment do Six::Dbmanager.reload_system end task :data => :environment do Six::Dbmanager.reload_data end task :integrated => :environment do Sixconfig.start_updater_inweb("--install") end end task :export => :environment do if ENV.include?("preset") config = Sixconfig.find(ENV['preset'].to_i) File.open(File.join(SixUpdaterWeb::DATA_PATH, 'six-updater.yml'), 'w') do |file| file.puts config.to_updater_yml end else puts "Error: No preset selected" end end
Version data entries
4 entries across 4 versions & 1 rubygems