From 8d0976a4cc8bfa57ae9f6c84571516c7f78819e3 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Mon, 22 Jun 2015 17:57:07 +0200 Subject: [PATCH] bugfix: scoping for ubuntu's ruby version Signed-off-by: Dominik Richter --- lib/resources/mysql_session.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/resources/mysql_session.rb b/lib/resources/mysql_session.rb index 78cdcaeaf..953c586ef 100644 --- a/lib/resources/mysql_session.rb +++ b/lib/resources/mysql_session.rb @@ -2,6 +2,8 @@ # copyright: 2015, Dominik Richter # license: All rights reserved +$__SCOPE + class MysqlSession < Vulcano::Resource def initialize user, pass @user = user @@ -23,7 +25,7 @@ class MysqlSession < Vulcano::Resource # skip this test if the server can't run the query skip_resource("Can't connect to MySQL instance for SQL checks.") else - __mysql__describe__helper(cmd, &block) + $__SCOPE.describe(cmd, &block) end end @@ -46,7 +48,3 @@ end def start_mysql_session( user=nil, password=nil ) MysqlSession.new(user, password) end - -def __mysql__describe__helper *a, &b - describe *a, &b -end