/usr/lib/ruby/vendor_ruby/specinfra/command/freebsd/base/routing_table.rb is in ruby-specinfra 2.66.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | class Specinfra::Command::Freebsd::Base::RoutingTable < Specinfra::Command::Base::RoutingTable
class << self
def check_has_entry(destination)
%Q{netstat -rnW | grep #{destination} | awk '{print $1, "via", $2, "dev", $7, " "}'}
end
alias :get_entry :check_has_entry
end
end
|