From ad7e6bd7d07999e586f59a49eaf33d2ff8ae73dd Mon Sep 17 00:00:00 2001 From: Jan Hruban Date: Tue, 25 Jun 2019 21:07:10 +0200 Subject: [PATCH] Update references to distillery.init There were few leftovers in the documentation still referring to release.init. --- docs/introduction/installation.md | 6 +++--- lib/distillery/tasks/clean.ex | 2 +- lib/distillery/tasks/gen.appup.ex | 2 +- lib/distillery/tasks/release.ex | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/introduction/installation.md b/docs/introduction/installation.md index e48e02f2..4ced5cd3 100644 --- a/docs/introduction/installation.md +++ b/docs/introduction/installation.md @@ -14,13 +14,13 @@ end ## Initial configuration Once installed, you need to run a one-time setup task which creates the configuration file Distillery -uses to define releases and environments. To do so, you just need to run the `release.init` task: +uses to define releases and environments. To do so, you just need to run the `distillery.init` task: $ mix distillery.init !!! tip - To get more details about the `release.init` task, or any others, use the `help` task: + To get more details about the `distillery.init` task, or any others, use the `help` task: mix help distillery.init @@ -31,7 +31,7 @@ here, depending on whether you want a default configuration that puts all applic in a single release (the default), or build a release for each application individually. You can always modify the generated config to define releases using whatever combination of applications you like. -The output of `release.init` is a config file, `rel/config.exs`, which is an Elixir script much like +The output of `distillery.init` is a config file, `rel/config.exs`, which is an Elixir script much like `config/config.exs`, and is used to define releases and environment-specific release configuration. An example of what those look like is below: diff --git a/lib/distillery/tasks/clean.ex b/lib/distillery/tasks/clean.ex index 5a34900d..da16844b 100644 --- a/lib/distillery/tasks/clean.ex +++ b/lib/distillery/tasks/clean.ex @@ -61,7 +61,7 @@ defmodule Mix.Tasks.Distillery.Release.Clean do end false -> - Shell.error("You are missing a release config file. Run the release.init task first") + Shell.error("You are missing a release config file. Run the distillery.init task first") System.halt(1) end diff --git a/lib/distillery/tasks/gen.appup.ex b/lib/distillery/tasks/gen.appup.ex index 87afaa0c..c70e53e4 100644 --- a/lib/distillery/tasks/gen.appup.ex +++ b/lib/distillery/tasks/gen.appup.ex @@ -51,7 +51,7 @@ defmodule Mix.Tasks.Distillery.Gen.Appup do case Config.get(opts) do {:error, {:config, :not_found}} -> - Shell.error("You are missing a release config file. Run the release.init task first") + Shell.error("You are missing a release config file. Run the distillery.init task first") System.halt(1) {:error, {:config, reason}} -> diff --git a/lib/distillery/tasks/release.ex b/lib/distillery/tasks/release.ex index 02553bc8..5e583f8c 100644 --- a/lib/distillery/tasks/release.ex +++ b/lib/distillery/tasks/release.ex @@ -9,7 +9,7 @@ defmodule Mix.Tasks.Distillery.Release do * `--profile` - selects both a release and environment, syntax for profiles is `name:env` Releases and environments are defined in `rel/config.exs`, created via - `release.init`. When determining the name and environment to use, refer to the + `distillery.init`. When determining the name and environment to use, refer to the definitions in that file if you are not sure what options are available. * `--erl` - provide extra flags to `erl` when running the release, expects a string @@ -62,7 +62,7 @@ defmodule Mix.Tasks.Distillery.Release do # Builds a release for a specific release environment MIX_ENV=prod mix distillery.release --env=dev - The default configuration produced by `release.init` will result in `mix distillery.release` + The default configuration produced by `distillery.init` will result in `mix distillery.release` selecting the first release in the config file (`rel/config.exs`), and the environment which matches the current Mix environment (i.e. the value of `MIX_ENV`). """ @@ -93,7 +93,7 @@ defmodule Mix.Tasks.Distillery.Release do case Config.get(opts) do {:error, {:config, :not_found}} -> - Shell.error("You are missing a release config file. Run the release.init task first") + Shell.error("You are missing a release config file. Run the distillery.init task first") System.halt(1) {:error, {:config, reason}} ->