modules/post/linux/manage/iptables_removal.rb
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
if command_exists?('iptables')
print_good('Deleting IPTABLES rules...')
cmd_exec('iptables -P INPUT ACCEPT')
cmd_exec('iptables -P FORWARD ACCEPT')