diff --git a/TestEventHandlerWithFailureContext.html b/TestEventHandlerWithFailureContext.html index 4c7096d21a..13bed9692f 100644 --- a/TestEventHandlerWithFailureContext.html +++ b/TestEventHandlerWithFailureContext.html @@ -217,9 +217,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento Web.epub b/Trento Web.epub index fde1299b29..590004b190 100644 Binary files a/Trento Web.epub and b/Trento Web.epub differ diff --git a/Trento.Abilities.html b/Trento.Abilities.html index ba6bce57bb..a9535b459b 100644 --- a/Trento.Abilities.html +++ b/Trento.Abilities.html @@ -255,8 +255,8 @@

change_ability(ability, attrs \\ %{})

Examples -
iex> change_ability(ability)
-%Ecto.Changeset{data: %Ability{}}
+
iex> change_ability(ability)
+%Ecto.Changeset{data: %Ability{}}
@@ -286,11 +286,11 @@

create_ability(attrs \\ %{})

Examples -
iex> create_ability(%{field: value})
-{:ok, %Ability{}}
+
iex> create_ability(%{field: value})
+{:ok, %Ability{}}
 
-iex> create_ability(%{field: bad_value})
-{:error, %Ecto.Changeset{}}
+
iex> create_ability(%{field: bad_value}) +{:error, %Ecto.Changeset{}}
@@ -318,11 +318,11 @@

delete_ability(ability)

Examples -
iex> delete_ability(ability)
-{:ok, %Ability{}}
+
iex> delete_ability(ability)
+{:ok, %Ability{}}
 
-iex> delete_ability(ability)
-{:error, %Ecto.Changeset{}}
+
iex> delete_ability(ability) +{:error, %Ecto.Changeset{}}
@@ -350,10 +350,10 @@

get_ability!(id)

Examples -
iex> get_ability!(123)
-%Ability{}
+
iex> get_ability!(123)
+%Ability{}
 
-iex> get_ability!(456)
+iex> get_ability!(456)
 ** (Ecto.NoResultsError)
@@ -382,8 +382,8 @@

list_abilities()

Examples -
iex> list_abilities()
-[%Ability{}, ...]
+
iex> list_abilities()
+[%Ability{}, ...]
@@ -411,11 +411,11 @@

update_ability(ability, attrs)

Examples -
iex> update_ability(ability, %{field: new_value})
-{:ok, %Ability{}}
+
iex> update_ability(ability, %{field: new_value})
+{:ok, %Ability{}}
 
-iex> update_ability(ability, %{field: bad_value})
-{:error, %Ecto.Changeset{}}
+
iex> update_ability(ability, %{field: bad_value}) +{:error, %Ecto.Changeset{}}
diff --git a/Trento.Clusters.Projections.ClusterProjector.html b/Trento.Clusters.Projections.ClusterProjector.html index d33451834b..5a23763982 100644 --- a/Trento.Clusters.Projections.ClusterProjector.html +++ b/Trento.Clusters.Projections.ClusterProjector.html @@ -245,9 +245,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.DataCase.html b/Trento.DataCase.html index bd1a577405..f1296067c9 100644 --- a/Trento.DataCase.html +++ b/Trento.DataCase.html @@ -204,9 +204,9 @@

errors_on(changeset)

-

A helper that transforms changeset errors into a map of messages.

assert {:error, changeset} = Accounts.create_user(%{password: "short"})
-assert "password is too short" in errors_on(changeset).password
-assert %{password: ["password is too short"]} = errors_on(changeset)
+

A helper that transforms changeset errors into a map of messages.

assert {:error, changeset} = Accounts.create_user(%{password: "short"})
+assert "password is too short" in errors_on(changeset).password
+assert %{password: ["password is too short"]} = errors_on(changeset)
diff --git a/Trento.Databases.Projections.DatabaseProjector.html b/Trento.Databases.Projections.DatabaseProjector.html index 906f94111f..40135ff7fc 100644 --- a/Trento.Databases.Projections.DatabaseProjector.html +++ b/Trento.Databases.Projections.DatabaseProjector.html @@ -245,9 +245,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Hosts.Projections.HostProjector.html b/Trento.Hosts.Projections.HostProjector.html index 00bcbb6f55..1199f8a091 100644 --- a/Trento.Hosts.Projections.HostProjector.html +++ b/Trento.Hosts.Projections.HostProjector.html @@ -253,9 +253,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Hosts.Projections.SlesSubscriptionsProjector.html b/Trento.Hosts.Projections.SlesSubscriptionsProjector.html index e84a45eb16..72f932a6b7 100644 --- a/Trento.Hosts.Projections.SlesSubscriptionsProjector.html +++ b/Trento.Hosts.Projections.SlesSubscriptionsProjector.html @@ -277,9 +277,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html index eaef0194cb..d89d412aed 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html @@ -217,9 +217,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html index 4d4e34015b..185551a83a 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseDeregistrationEventHandler.html @@ -218,9 +218,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html index ef4bf49b8d..975d84192d 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.DatabaseRestoreEventHandler.html @@ -218,9 +218,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html index 76b6d94033..925efbfde2 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.RollUpEventHandler.html @@ -217,9 +217,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html index ac3d8f7fab..0612cbe7d9 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.SapSystemDatabaseHealthEventHandler.html @@ -218,9 +218,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html index 1c2ad6305e..310800c5c7 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.SoftwareUpdatesDiscoveryEventHandler.html @@ -218,9 +218,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html index 29d6c1de30..88cbcc2393 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.StreamRollUpEventHandler.html @@ -219,9 +219,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html b/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html index 424912da2b..42e080b485 100644 --- a/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html +++ b/Trento.Infrastructure.Commanded.ProcessManagers.DeregistrationProcessManager.html @@ -407,9 +407,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleProcessManager, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleProcessManager, []}
+], strategy: :one_for_one)
diff --git a/Trento.SapSystems.Projections.SapSystemProjector.html b/Trento.SapSystems.Projections.SapSystemProjector.html index 869e572a8c..f93767407f 100644 --- a/Trento.SapSystems.Projections.SapSystemProjector.html +++ b/Trento.SapSystems.Projections.SapSystemProjector.html @@ -245,9 +245,9 @@

child_spec(opts)

Example -
Supervisor.start_link([
-  {ExampleHandler, []}
-], strategy: :one_for_one)
+
Supervisor.start_link([
+  {ExampleHandler, []}
+], strategy: :one_for_one)
diff --git a/Trento.Scheduler.html b/Trento.Scheduler.html index c1277ddcc4..4eee92cec4 100644 --- a/Trento.Scheduler.html +++ b/Trento.Scheduler.html @@ -140,12 +140,12 @@

Defines a quantum Scheduler.

When used, the quantum scheduler expects the :otp_app as option. The :otp_app should point to an OTP application that has -the quantum runner configuration. For example, the quantum scheduler:

defmodule Trento.Scheduler do
+the quantum runner configuration. For example, the quantum scheduler:

defmodule Trento.Scheduler do
   use Quantum, otp_app: :trento
-end

Could be configured with:

config :trento, Trento.Scheduler,
-  jobs: [
-    {"@daily", {Backup, :backup, []}},
-  ]

+end

Could be configured with:

config :trento, Trento.Scheduler,
+  jobs: [
+    {"@daily", {Backup, :backup, []}},
+  ]

@@ -165,49 +165,49 @@

Examples

-
iex(1)> :telemetry_registry.discover_all(:quantum)
+
iex(1)> :telemetry_registry.discover_all(:quantum)
 :ok
-iex(2)> :telemetry_registry.spannable_events()
-[{[:quantum, :job], [:start, :stop, :exception]}]
+iex(2)> :telemetry_registry.spannable_events()
+[{[:quantum, :job], [:start, :stop, :exception]}]
 iex(3)> :telemetry_registry.list_events
-[
-  {[:quantum, :job, :add], Quantum,
-   %{
+[
+  {[:quantum, :job, :add], Quantum,
+   %{
      description: "dispatched when a job is added",
      measurements: "%{}",
      metadata: "%{job: Quantum.Job.t(), scheduler: atom()}"
-   }},
-  {[:quantum, :job, :delete], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :delete], Quantum,
+   %{
      description: "dispatched when a job is deleted",
      measurements: "%{}",
      metadata: "%{job: Quantum.Job.t(), scheduler: atom()}"
-   }},
-  {[:quantum, :job, :exception], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :exception], Quantum,
+   %{
      description: "dispatched on job execution fail",
      measurements: "%{duration: integer()}",
      metadata: "%{telemetry_span_context: term(), job: Quantum.Job.t(), node: Node.t(), scheduler: atom(), kind: :throw | :error | :exit, reason: term(), stacktrace: list()}"
-   }},
-  {[:quantum, :job, :start], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :start], Quantum,
+   %{
      description: "dispatched on job execution start",
      measurements: "%{system_time: integer()}",
      metadata: "%{telemetry_span_context: term(), job: Quantum.Job.t(), node: Node.t(), scheduler: atom()}"
-   }},
-  {[:quantum, :job, :stop], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :stop], Quantum,
+   %{
      description: "dispatched on job execution end",
      measurements: "%{duration: integer()}",
      metadata: "%{telemetry_span_context: term(), job: Quantum.Job.t(), node: Node.t(), scheduler: atom(), result: term()}"
-   }},
-  {[:quantum, :job, :update], Quantum,
-   %{
+   }},
+  {[:quantum, :job, :update], Quantum,
+   %{
      description: "dispatched when a job is updated",
      measurements: "%{}",
      metadata: "%{job: Quantum.Job.t(), scheduler: atom()}"
-   }}
-]
+
}} +]
diff --git a/TrentoWeb.Gettext.html b/TrentoWeb.Gettext.html index 938983b1fb..e213a8de28 100644 --- a/TrentoWeb.Gettext.html +++ b/TrentoWeb.Gettext.html @@ -142,15 +142,15 @@

your module gains a set of macros for translations, for example:

import TrentoWeb.Gettext
 
 # Simple translation
-gettext("Here is the string to translate")
+gettext("Here is the string to translate")
 
 # Plural translation
-ngettext("Here is the string to translate",
+ngettext("Here is the string to translate",
          "Here are the strings to translate",
-         3)
+         3)
 
 # Domain-based translation
-dgettext("errors", "Here is the error message to translate")

See the Gettext Docs for detailed usage.

+dgettext("errors", "Here is the error message to translate")

See the Gettext Docs for detailed usage.

diff --git a/hack_on_the_trento.html b/hack_on_the_trento.html index 7c6dc7cdae..e625242cfd 100644 --- a/hack_on_the_trento.html +++ b/hack_on_the_trento.html @@ -156,7 +156,7 @@

Ensure Compatibility with asdf

-

asdf allows to use specific versions of programming language tools that are known to be compatible with the project, rather than relying on the version that's installed globally on the host system.

In order to use asdf, follow the official asdf getting started guide.

Install all required asdf plugins from .tool-versions inside the web repository.

cut -d' ' -f1 .tool-versions|xargs -i asdf plugin add  {}

Set up the asdf environment

asdf install

+

asdf allows to use specific versions of programming language tools that are known to be compatible with the project, rather than relying on the version that's installed globally on the host system.

In order to use asdf, follow the official asdf getting started guide.

Install all required asdf plugins from .tool-versions inside the web repository.

cut -d' ' -f1 .tool-versions|xargs -i asdf plugin add  {}

Set up the asdf environment

asdf install