Skip to content

Commit

Permalink
[infra] remove repl for release task
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Jan 15, 2024
1 parent 7c8edaf commit 6f6ee70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion apps/boruta_web/lib/boruta_web/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ defmodule BorutaWeb.Application do
IO.puts("These informations are optional, that said,")
IO.puts("the owners would be thankful if you could provide those information")
IO.puts("")
IO.puts("Thank you")
IO.puts("Thank you for using boruta")
IO.puts("====================")
company_name = Owl.IO.input(label: "Your company name:", optional: true)
purpose = Owl.IO.input(label: "Purpose of the installation:", optional: true)
Expand Down
25 changes: 0 additions & 25 deletions apps/boruta_web/lib/boruta_web/release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ defmodule BorutaWeb.Release do
def setup do
migrate()
seed()
register_application_repl()
end

defp repos do
Expand All @@ -38,28 +37,4 @@ defmodule BorutaWeb.Release do
end)
|> Enum.uniq()
end

@dialyzer {:no_return, register_application_repl: 0}
defp register_application_repl do
Finch.start_link(name: RegistrationHttp)
Application.ensure_started(:telemetry)

IO.puts("====================")
IO.puts("Please provide information about boruta package usage for statistical purposes")
IO.puts("")
IO.puts("The owners would be thankful if you could provide those information")
IO.puts("====================")
company_name = Owl.IO.input(label: "Your company name:", optional: true)
purpose = Owl.IO.input(label: "Purpose of the installation:", optional: true)

Finch.build(
:post,
"https://getform.io/f/f3907bc0-8ae5-46d6-b1ec-9e4253e2e4f1",
[{"Content-Type", "application/json"}],
%{
company_name: company_name,
purpose: purpose
} |> Jason.encode!()
) |> Finch.request(RegistrationHttp)
end
end

0 comments on commit 6f6ee70

Please sign in to comment.