Skip to content

Commit

Permalink
Update references to distillery.init (#688)
Browse files Browse the repository at this point in the history
There were few leftovers in the documentation still referring to
release.init.
  • Loading branch information
hrubi authored and bitwalker committed Jun 25, 2019
1 parent 706e49f commit 0a61fb4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/introduction/installation.md
Expand Up @@ -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

Expand All @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion lib/distillery/tasks/clean.ex
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/distillery/tasks/gen.appup.ex
Expand Up @@ -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}} ->
Expand Down
6 changes: 3 additions & 3 deletions lib/distillery/tasks/release.ex
Expand Up @@ -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
Expand Down Expand Up @@ -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`).
"""
Expand Down Expand Up @@ -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}} ->
Expand Down

0 comments on commit 0a61fb4

Please sign in to comment.