1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2025-08-12 12:48:39 +02:00

Refactor V2 and V3 parser into one

This commit is contained in:
cn
2013-05-03 20:16:17 +02:00
parent 33013c56f3
commit a1a6b33902
4 changed files with 40 additions and 16 deletions

View File

@@ -0,0 +1,12 @@
require 'openvpn-status-web/parser/modern_stateless'
module OpenVPNStatusWeb
module Parser
class V3
def parse_status_log(text)
OpenVPNStatusWeb::Parser::ModernStateless.parse_status_log(text, "\t")
end
end
end
end