Method: Inspec::Resources::MysqlSession#initialize
- Defined in:
- lib/resources/mysql_session.rb
#initialize(user = nil, pass = nil, host = 'localhost', port = nil, socket = nil) ⇒ MysqlSession
Returns a new instance of MysqlSession.
19 20 21 22 23 24 25 26 27 |
# File 'lib/resources/mysql_session.rb', line 19 def initialize(user = nil, pass = nil, host = 'localhost', port = nil, socket = nil) @user = user @pass = pass @host = host @port = port @socket = socket init_fallback if user.nil? or pass.nil? skip_resource("Can't run MySQL SQL checks without authentication") if @user.nil? or @pass.nil? end |