Skip to content

Commit

Permalink
Find where an application's dependencies are stored (2600hz#6050)
Browse files Browse the repository at this point in the history
* Find where an application's dependencies are stored

Since KAZOO apps list their dependent apps in the .app.src file, it is
imperitive that we search deps/ core/ and applications/ to find the
dependent app.

* fix the docs
  • Loading branch information
jamesaimonetti authored and lazedo committed Sep 24, 2019
1 parent fa51ab5 commit 81f98b7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
5 changes: 4 additions & 1 deletion applications/callflow/doc/answer.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ Validator for the answer callflow data object

Key | Description | Type | Default | Required | Support Level
--- | ----------- | ---- | ------- | -------- | -------------
`skip_module` | When set to true this callflow action is skipped, advancing to the wildcard branch (if any) | `boolean()` | | `false` |
`skip_module` | When set to true this callflow action is skipped, advancing to the wildcard branch (if any) | `boolean()` | | `false` |



5 changes: 4 additions & 1 deletion applications/callflow/doc/noop.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ Validator for the noop callflow data object

Key | Description | Type | Default | Required | Support Level
--- | ----------- | ---- | ------- | -------- | -------------
`skip_module` | When set to true this callflow action is skipped, advancing to the wildcard branch (if any) | `boolean()` | | `false` |
`skip_module` | When set to true this callflow action is skipped, advancing to the wildcard branch (if any) | `boolean()` | | `false` |



5 changes: 4 additions & 1 deletion applications/callflow/doc/wait_for_hangup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ Validator for the wait_for_hangup callflow data object

Key | Description | Type | Default | Required | Support Level
--- | ----------- | ---- | ------- | -------- | -------------
`skip_module` | When set to true this callflow action is skipped, advancing to the wildcard branch (if any) | `boolean()` | | `false` |
`skip_module` | When set to true this callflow action is skipped, advancing to the wildcard branch (if any) | `boolean()` | | `false` |



6 changes: 2 additions & 4 deletions scripts/calculate-dep-targets.escript
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,5 @@ consult_for_app_deps(KazooRoot, App) ->
proplists:get_value('applications', Config, []).

core_or_app(KazooRoot, AppL) ->
case filelib:is_dir(filename:join([KazooRoot, "core", AppL])) of
'true' -> "core";
'false' -> "applications"
end.
[Path] = filelib:wildcard(KazooRoot ++ "/{core,applications,deps}/" ++ AppL),
filename:basename(filename:dirname(Path)).

0 comments on commit 81f98b7

Please sign in to comment.