diff options
Diffstat (limited to 'apps/couch/src/couch.erl')
-rw-r--r-- | apps/couch/src/couch.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/couch/src/couch.erl b/apps/couch/src/couch.erl index 956e9489..f6b048a5 100644 --- a/apps/couch/src/couch.erl +++ b/apps/couch/src/couch.erl @@ -37,3 +37,7 @@ reload() -> {error, Reason} -> {error, Reason} end. + +version() -> + {ok, FullVersion} = application:get_key(couch, vsn), + hd(string:tokens(FullVersion, "-")). |