diff --git a/TestEventHandlerWithFailureContext.html b/TestEventHandlerWithFailureContext.html index e3e3b3152e..6e4930fe09 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 eab7c17d86..c8aa902824 100644 Binary files a/Trento Web.epub and b/Trento Web.epub differ diff --git a/Trento.Abilities.html b/Trento.Abilities.html index a1e482ec02..c439f18d66 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 c90b60746a..1ecdc767f3 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 d5dbf9c222..3ae8cc8f72 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 32a254fb1f..fd71180a64 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 bdc8abeb5a..fec8187fe6 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 5e09797416..746b268504 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.ActivityLogEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.ActivityLogEventHandler.html index eef2323e5b..95c872e362 100644 --- a/Trento.Infrastructure.Commanded.EventHandlers.ActivityLogEventHandler.html +++ b/Trento.Infrastructure.Commanded.EventHandlers.ActivityLogEventHandler.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.AlertsEventHandler.html b/Trento.Infrastructure.Commanded.EventHandlers.AlertsEventHandler.html index 5341235c26..4a81733e29 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 09f2d87e6c..748145bc13 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 93b08594f0..140b5a2d0b 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 4c38c23818..9aace0a6a3 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 64055ba715..6f0c1433e7 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 31f91ed07b..ee2ccf8c52 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 5942311d80..6d566b89b9 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 27af176d9e..434ff79d30 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 bc320e311a..ca8c39e74f 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 9ec7976d66..545ee023d3 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 bf9faeaa02..fc8edf2086 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 800f2c121f..5857b5b0f3 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