fix mainfest
This commit is contained in:
parent
136b8bc627
commit
cefc473309
@ -24,8 +24,9 @@
|
|||||||
%% API
|
%% API
|
||||||
-export([new/1, startup/1]).
|
-export([new/1, startup/1]).
|
||||||
|
|
||||||
-spec new(WorkDir :: string()) -> {ok, #manifest{}} | {error, Reason :: binary()}.
|
-spec new(ServiceRootDir :: string()) -> {ok, #manifest{}} | {error, Reason :: binary()}.
|
||||||
new(WorkDir) when is_list(WorkDir) ->
|
new(ServiceRootDir) when is_list(ServiceRootDir) ->
|
||||||
|
WorkDir = ServiceRootDir + "/work_dir/",
|
||||||
case file:read_file(WorkDir ++ "manifest.json") of
|
case file:read_file(WorkDir ++ "manifest.json") of
|
||||||
{ok, ManifestInfo} ->
|
{ok, ManifestInfo} ->
|
||||||
Settings = catch jiffy:decode(ManifestInfo, [return_maps]),
|
Settings = catch jiffy:decode(ManifestInfo, [return_maps]),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user