From: elijah Date: Sat, 3 Nov 2012 02:14:47 +0000 (-0700) Subject: fixed another eval problem in 1.9 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6b62463c373eff46d6fa005011cabed92fce79e2;p=leap%2Fleap_cli.git fixed another eval problem in 1.9 --- diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb index 3bfb66b..909dc0a 100644 --- a/lib/leap_cli/util.rb +++ b/lib/leap_cli/util.rb @@ -83,8 +83,9 @@ module LeapCli def assert_config!(conf_path) value = nil begin - value = eval(conf_path, manager.send(:binding)) + value = manager.instance_eval(conf_path) rescue NoMethodError + rescue NameError end assert! value, "* Error: Nothing set for #{conf_path}" end