From 30f42d5869f65d3171878b4d6d94e9c3813f02cf Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 23 Nov 2012 01:49:23 -0800 Subject: initial work toward 'leap test'. for now, it generates an openvpn config for client testing. try 'leap init-test' --- lib/leap_cli/util.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/leap_cli/util.rb') diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb index 0b0fb9e..c3adbdc 100644 --- a/lib/leap_cli/util.rb +++ b/lib/leap_cli/util.rb @@ -1,6 +1,7 @@ require 'digest/md5' require 'paint' require 'fileutils' +require 'erb' module LeapCli @@ -276,6 +277,14 @@ module LeapCli STDOUT.puts end + ## + ## ERB + ## + + def erb_eval(string, binding=nil) + ERB.new(string, nil, '%<>-').result(binding) + end + end end -- cgit v1.2.3