lib/inspec/resources/routing_table.rb
def find_netstat_or_error
      %w{/usr/sbin/netstat /sbin/netstat /usr/bin/netstat /bin/netstat netstat}.each do |cmd|
        return cmd if inspec.command(cmd).exist?
      end

      raise Inspec::Exceptions::ResourceFailed, "Could not find `netstat` utility to view routing table information"
    end
# check if netstat is available on the system
check if netstat is available on the system
check if netstat is available on the system
def find_netstat_or_error
      %w{/usr/sbin/netstat /sbin/netstat /usr/bin/netstat /bin/netstat netstat}.each do |cmd|
        return cmd if inspec.command(cmd).exist?
      end
      raise Inspec::Exceptions::ResourceFailed, "Could not find `netstat` utility to view routing table information"
    end
def find_netstat_or_error %w{ /usr/sbin/netstat /sbin/netstat /usr/bin/netstat /bin/netstat netstat } . each do | cmd | return cmd if inspec . command ( cmd ) . exist? end raise Inspec :: Exceptions :: ResourceFailed , "Could not find `netstat` utility to view routing table information" end
check if netstat is available on the system
check if netstat is available on the system