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
  • Loading branch information
sylane committed Oct 28, 2024
1 parent bacb45e commit bd7f48a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 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 Expand Up @@ -326,6 +335,7 @@ event([deploy, distribute, _Name, {error, file_exists, Path}]) ->
event(Event) ->
debug("[rebar3_grisp] ~p", [Event]).


% grisp_tools Handlers

download([deploy, package, download, {start, Size}], State) ->
Expand Down

0 comments on commit bd7f48a

Please sign in to comment.