Add version method

This commit is contained in:
James Hu 2016-10-05 13:10:34 -07:00
parent de5693b1a3
commit 1c366e0a2d
1 changed files with 5 additions and 0 deletions

View File

@ -2,4 +2,9 @@ require 'reverse_proxy/client'
require 'reverse_proxy/controller' require 'reverse_proxy/controller'
module ReverseProxy module ReverseProxy
def version
File.open(File.expand_path("../../VERSION", __FILE__)).read.strip
end
extend self
end end