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 /lib | |
| 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 'lib')
| -rw-r--r-- | lib/farside/application.ex | 17 | ||||
| -rw-r--r-- | lib/farside/router.ex (renamed from lib/privacy_revolver/router.ex) | 4 | ||||
| -rw-r--r-- | lib/privacy_revolver/application.ex | 17 |
3 files changed, 19 insertions, 19 deletions
diff --git a/lib/farside/application.ex b/lib/farside/application.ex new file mode 100644 index 0000000..708ff0d --- /dev/null +++ b/lib/farside/application.ex @@ -0,0 +1,17 @@ +defmodule Farside.Application do + @redis_conn Application.fetch_env!(:farside, :redis_conn) + @moduledoc false + + use Application + + @impl true + def start(_type, _args) do + children = [ + Plug.Cowboy.child_spec(scheme: :http, plug: Farside.Router, options: [port: 4001]), + {Redix, {@redis_conn, [name: :redix]}} + ] + + opts = [strategy: :one_for_one, name: Farside.Supervisor] + Supervisor.start_link(children, opts) + end +end diff --git a/lib/privacy_revolver/router.ex b/lib/farside/router.ex index 2a51094..95d9b41 100644 --- a/lib/privacy_revolver/router.ex +++ b/lib/farside/router.ex @@ -1,5 +1,5 @@ -defmodule PrivacyRevolver.Router do - @fallback_str Application.fetch_env!(:privacy_revolver, :fallback_str) +defmodule Farside.Router do + @fallback_str Application.fetch_env!(:farside, :fallback_str) use Plug.Router diff --git a/lib/privacy_revolver/application.ex b/lib/privacy_revolver/application.ex deleted file mode 100644 index 04b7540..0000000 --- a/lib/privacy_revolver/application.ex +++ /dev/null @@ -1,17 +0,0 @@ -defmodule PrivacyRevolver.Application do - @redis_conn Application.fetch_env!(:privacy_revolver, :redis_conn) - @moduledoc false - - use Application - - @impl true - def start(_type, _args) do - children = [ - Plug.Cowboy.child_spec(scheme: :http, plug: PrivacyRevolver.Router, options: [port: 4001]), - {Redix, {@redis_conn, [name: :redix]}} - ] - - opts = [strategy: :one_for_one, name: PrivacyRevolver.Supervisor] - Supervisor.start_link(children, opts) - end -end |
