bugfix: scoping for ubuntu's ruby version

Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
Dominik Richter 2015-06-22 17:57:07 +02:00
parent e832a1f2c8
commit 8d0976a4cc

View file

@ -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