diff options
| author | Ben Busby <noreply+git@benbusby.com> | 2021-11-07 12:29:06 -0700 |
|---|---|---|
| committer | Ben Busby <noreply+git@benbusby.com> | 2021-11-07 12:29:06 -0700 |
| commit | 8042dcad0c61110111949a856c935325ca65f8ef (patch) | |
| tree | 2f3bfb751fd5910fc80383d45e41e85444e0fd4b /update.exs | |
| parent | 06bb8403dd64ba51557c48324dbe88b58244e3e8 (diff) | |
| download | farside-8042dcad0c61110111949a856c935325ca65f8ef.tar.gz | |
Refactor project to new name
The name of the project is being refactored from Privacy Revolver to
Farside. The reasoning behind this is:
1. A shorter name is easier to remember
2. It can stand for "FOSS alternative redirecting service" (which I know
doesn't encapsulate all letters from "farside", but it's close enough).
This commit also includes improvements to the update script for
determining how far along the script is.
Diffstat (limited to 'update.exs')
| -rw-r--r-- | update.exs | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8,9 +8,9 @@ defmodule Service do end defmodule Instances do - @fallback_str Application.fetch_env!(:privacy_revolver, :fallback_str) - @update_file Application.fetch_env!(:privacy_revolver, :update_file) - @services_json Application.fetch_env!(:privacy_revolver, :services_json) + @fallback_str Application.fetch_env!(:farside, :fallback_str) + @update_file Application.fetch_env!(:farside, :update_file) + @services_json Application.fetch_env!(:farside, :services_json) def init() do File.rename(@update_file, "#{@update_file}-prev") @@ -33,7 +33,9 @@ defmodule Instances do # Loop through all instances and check each for availability for service <- json do + IO.puts "======== " <> service.type result = Enum.filter(service.instances, fn(instance_url) -> + IO.puts " " <> instance_url request(instance_url <> service.test_url) == :good end) @@ -43,6 +45,8 @@ defmodule Instances do end def add_to_redis(service, instances) do + IO.puts " --------" + IO.inspect "OK: " <> instances # Remove previous list of instances Redix.command(:redix, [ "DEL", |
