mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
bugfix: scoping for ubuntu's ruby version
Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
parent
e832a1f2c8
commit
8d0976a4cc
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue