diff --git a/TestEventHandlerWithFailureContext.html b/TestEventHandlerWithFailureContext.html index 04a6ce7e2b..75bb33fc01 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 120c70f0e1..baf999571b 100644 Binary files a/Trento Web.epub and b/Trento Web.epub differ diff --git a/Trento.Abilities.html b/Trento.Abilities.html index 78baac89a0..8b45c003d3 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 739f3fe9fa..814824375a 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 794392faec..008b50bff3 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 261b9072be..ff4bd174b3 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 e2340d5d01..99b53652d7 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 210205035f..01190f06be 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 2a0d42ed57..e84ce19157 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 ec5b77465d..4b2e2eb89f 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 3315f4d9a8..da885fec2d 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 c0d1005cc5..6d2aaab8fb 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 8c935fec20..09efe6383d 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 5a8d29ed0f..ac18aab1cf 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 72b743d865..b80dd391b5 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 25d9f0063e..3814d3a9ac 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 deb459e26d..1bddc4d339 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 46a35fc243..888f11c2b7 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 67942f1064..e827a42640 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 ebc1ba0e86..f4968cd107 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 8c11ff11ea..43f4e0c15d 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