Fixes based on PR feedback.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-10-31 11:44:08 -07:00
parent c582895434
commit b63e886523

View file

@ -1,5 +1,4 @@
require "inspec/resources/command"
require "hashie/mash"
require "inspec/utils/database_helpers"
require "htmlentities"
require "rexml/document"
@ -21,8 +20,8 @@ module Inspec::Resources
end
EXAMPLE
attr_reader :user, :password, :host, :port, :service,
:db_role, :su_user, :bin
attr_reader :bin, :db_role, :host, :password, :port, :service,
:su_user, :user
def initialize(opts = {})
@user = opts[:user]
@ -74,7 +73,7 @@ module Inspec::Resources
# su, using a db_role
def command_builder(format_options, query)
verified_query = verify_query(query)
sql_prefix, sql_postfix = ""
sql_prefix, sql_postfix = "", ""
if inspec.os.windows?
sql_prefix = %{@'\n#{format_options}\n#{verified_query}\nEXIT\n'@ | }
else