diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-08-18 14:57:08 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-18 14:57:08 -0400 |
commit | 1fda1aa8f69d5870c5711b0068971c7d4594e6cc (patch) | |
tree | edbe28a6e03b9932596f03e294fe33df2c2b1009 /apps/couch/src/couch.erl | |
parent | 1b40244642f1099df7b7addecf2ac47e52b8d636 (diff) |
new version() call allows for hidden patch releases
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, "-")). |