aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-02 19:14:47 -0700
committerelijah <elijah@riseup.net>2012-11-02 19:14:47 -0700
commit6b62463c373eff46d6fa005011cabed92fce79e2 (patch)
treea7813e61ac1d15f96c858f46b4438409333d0a00
parentac334e5c971f5935f101744c1a067d6a5f2f5f51 (diff)
downloadleap_cli-6b62463c373eff46d6fa005011cabed92fce79e2.tar.gz
leap_cli-6b62463c373eff46d6fa005011cabed92fce79e2.tar.bz2
fixed another eval problem in 1.9
-rw-r--r--lib/leap_cli/util.rb3
1 files changed, 2 insertions, 1 deletions
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