Enable quokka with :module_directives rule

This commit is contained in:
Claudio Ortolina
2025-05-28 19:41:57 +01:00
parent 5207aa2773
commit 676c2e4290
52 changed files with 103 additions and 73 deletions
@@ -1,5 +1,4 @@
defmodule Mix.Tasks.MusicLibrary.Prod.DbMigrate do
use Mix.Task
@shortdoc "Run migrations on the production database"
@moduledoc """
Run migrations on the production database.
@@ -7,6 +6,8 @@ defmodule Mix.Tasks.MusicLibrary.Prod.DbMigrate do
Requires the `flyctl` CLI to be installed and authenticated.
"""
use Mix.Task
import Mix.Tasks.MusicLibrary.Prod.Helpers
@impl Mix.Task
+2 -1
View File
@@ -1,11 +1,12 @@
defmodule Mix.Tasks.MusicLibrary.Prod.DbPull do
use Mix.Task
@shortdoc "Pulls the latest database from the production server"
@moduledoc """
Pulls the latest database from the production server.
Requires the `flyctl` CLI to be installed and authenticated.
"""
use Mix.Task
import Mix.Tasks.MusicLibrary.Prod.Helpers
@impl Mix.Task
@@ -1,5 +1,4 @@
defmodule Mix.Tasks.MusicLibrary.Prod.DbVacuum do
use Mix.Task
@shortdoc "Force VACUUM the production database"
@moduledoc """
Force VACUUM the production database. This is necessary to make sure that all
@@ -8,6 +7,8 @@ defmodule Mix.Tasks.MusicLibrary.Prod.DbVacuum do
Requires the `flyctl` CLI to be installed and authenticated.
"""
use Mix.Task
import Mix.Tasks.MusicLibrary.Prod.Helpers
@impl Mix.Task
+2 -1
View File
@@ -1,10 +1,11 @@
defmodule Mix.Tasks.MusicLibrary.Prod.Ping do
use Mix.Task
@shortdoc "Ping the production instance"
@moduledoc """
Ping the production instance - useful to wake it up if suspended.
"""
use Mix.Task
@impl Mix.Task
def run(_args) do
Application.ensure_all_started(:req)