lib/vatsim/data.rb
def download_files
      if !File.exists?(STATUS_FILE_PATH) or File.mtime(STATUS_FILE_PATH) < Time.now - STATUS_DOWNLOAD_INTERVAL
       download_to_file STATUS_URL, STATUS_FILE_PATH
      end

      if !File.exists?(DATA_FILE_PATH) or File.mtime(DATA_FILE_PATH) < Time.now - DATA_DOWNLOAD_INTERVAL
        download_to_file random_data_url, DATA_FILE_PATH
      end
    end
def download_files
      if !File.exists?(STATUS_FILE_PATH) or File.mtime(STATUS_FILE_PATH) < Time.now - STATUS_DOWNLOAD_INTERVAL
       download_to_file STATUS_URL, STATUS_FILE_PATH
      end

      if !File.exists?(DATA_FILE_PATH) or File.mtime(DATA_FILE_PATH) < Time.now - DATA_DOWNLOAD_INTERVAL
        download_to_file random_data_url, DATA_FILE_PATH
      end
    end
Initialize the system by downloading status and vatsim data files