Class: Specinfra::Command::Openbsd::Base::RoutingTable

Inherits:
Base::RoutingTable show all
Defined in:
lib/specinfra/command/openbsd/base/routing_table.rb

Class Method Summary collapse

Methods inherited from Base

create, escape

Class Method Details

.check_has_entry(destination) ⇒ Object Also known as: get_entry



3
4
5
# File 'lib/specinfra/command/openbsd/base/routing_table.rb', line 3

def check_has_entry(destination)
  "route -n show -gateway | egrep '^#{destination}' | head -1"
end