chefstyle -a after merging #4156

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-06-19 13:34:17 -07:00
parent 4068df3ee7
commit 8e020f1b51
2 changed files with 5 additions and 5 deletions

View file

@ -33,16 +33,16 @@ module Inspec
# EULA acceptance
def self.check_license!
allowed_commands = ['-h', '--help', 'help', '-v', '--version', 'version']
allowed_commands = ["-h", "--help", "help", "-v", "--version", "version"]
require 'license_acceptance/acceptor'
require "license_acceptance/acceptor"
begin
if (allowed_commands & ARGV.map(&:downcase)).empty? && # Did they use a non-exempt command?
!ARGV.empty? # Did they supply at least one command?
!ARGV.empty? # Did they supply at least one command?
LicenseAcceptance::Acceptor.check_and_persist(
Inspec::Dist::EXEC_NAME,
Inspec::VERSION,
logger: Inspec::Log,
logger: Inspec::Log
)
end
rescue LicenseAcceptance::LicenseNotAcceptedError

View file

@ -418,7 +418,7 @@ end
# Pre-Flight Code
#=====================================================================#
help_commands = ['-h', '--help', 'help']
help_commands = ["-h", "--help", "help"]
#---------------------------------------------------------------------#
# Adjustments for help handling