INNER CODE UNIT · Ruby
merge_rule_arguments
stelligent/cfn_nag · lib/cfn-nag/cfn_nag_executor.rb:111
def merge_rule_arguments(opts)
rule_arguments = {}
rule_arguments = JSON.parse(@rule_arguments_string) if @rule_arguments_string
opts[:rule_arguments]&.each do |rule_argument|
name = rule_argument.split(':')[0]
value = rule_argument.split(':')[1]
rule_arguments[name] = value
end
rule_arguments
end
def cfn_nag_config(opts)
CfnNagConfig.new(
profile_definition: @profile_definition,
deny_list_definition: @deny_list_definition,
rule_directory: opts[:rule_directory],
allow_suppression: opts[:allow_suppression],
print_suppression: opts[:print_suppression],