mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
chefstyle -a
after merging #4156
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
4068df3ee7
commit
8e020f1b51
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -418,7 +418,7 @@ end
|
|||
# Pre-Flight Code
|
||||
#=====================================================================#
|
||||
|
||||
help_commands = ['-h', '--help', 'help']
|
||||
help_commands = ["-h", "--help", "help"]
|
||||
|
||||
#---------------------------------------------------------------------#
|
||||
# Adjustments for help handling
|
||||
|
|
Loading…
Add table
Reference in a new issue