Skip to content

Commit

Permalink
Pass the profile list to the deploy command to be included in the man…
Browse files Browse the repository at this point in the history
…ifest (#96)
  • Loading branch information
sylane authored Oct 29, 2024
1 parent bacb45e commit eaf66ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rebar3_grisp_deploy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ do(RState) ->
copy_dist_spec(RState, CopyDest, Force)
]
end,
Profiles = [P || P <- rebar_state:current_profiles(RState),
P =/= default, P =/= grisp, P =/= test],
DeploySpec = #{
project_root => ProjectRoot,
apps => Apps,
Expand All @@ -97,6 +99,7 @@ do(RState) ->
release => #{
name => RelName,
version => RelVsn,
profiles => Profiles,
tar => Tar,
force => Force
},
Expand Down Expand Up @@ -295,6 +298,12 @@ event([deploy, distribute, copy, release, {copy, _Source, _Target}]) ->
console("* Copying release...");
event([deploy, distribute, copy, files, {init, _Dest}]) ->
console("* Copying files...");
event([deploy, distribute, copy, files, {error, file_exists, Path}]) ->
RelPath = grisp_tools_util:maybe_relative(Path, ?MAX_DDOT),
abort(
"Destination ~s already exists (use --force to overwrite)",
[RelPath]
);
event([deploy, distribute, bundle, files, {init, _Dest}]) ->
console("* Bundling files...");
event([deploy, distribute, _Name, files, {_, #{app := App, target := File}}]) ->
Expand Down

0 comments on commit eaf66ce

Please sign in to comment.