lib/app/models/system_setting.rb in six-updater-web-0.13.3 vs lib/app/models/system_setting.rb in six-updater-web-0.13.4
- old
+ new
@@ -15,17 +15,19 @@
end
def update_gamespy
self.gamespied_at = Time.now
self.save
- cl = "sync:gamespy RAILS_ENV=#{ENV['RAILS_ENV']} BASE_PATH=\'#{SixUpdaterWeb::BASE_PATH}\'" # + cl
+ cl = "sync:gamespy RAILS_ENV=#{ENV['RAILS_ENV']}" # + cl
+ cl += " BASE_PATH=\'#{ENV['BASE_PATH']}\'" if ENV['BASE_PATH']
SixUpdaterWeb.run_program(exec, RAILS_ROOT, cl)
end
def update_gamespy_nogeo
self.gamespied_at = Time.now
self.save
- cl = "sync:gamespy RAILS_ENV=#{ENV['RAILS_ENV']} NOGEO=1 BASE_PATH=\'#{SixUpdaterWeb::BASE_PATH}\'" # + cl
+ cl = "sync:gamespy RAILS_ENV=#{ENV['RAILS_ENV']} NOGEO=1" # + cl
+ cl += " BASE_PATH=\'#{ENV['BASE_PATH']}\'" if ENV['BASE_PATH']
SixUpdaterWeb.run_program(exec, RAILS_ROOT, cl)
end
def synchronize
Six::Network::Panel.setlogger(logger)