Class: Specinfra::Command::Base::RoutingTable
- Inherits:
-
Specinfra::Command::Base
- Object
- Specinfra::Command::Base
- Specinfra::Command::Base::RoutingTable
- Defined in:
- lib/specinfra/command/base/routing_table.rb
Direct Known Subclasses
Class Method Summary collapse
- .check_has_entry(destination) ⇒ Object (also: get_entry)
Methods inherited from Specinfra::Command::Base
Class Method Details
.check_has_entry(destination) ⇒ Object Also known as: get_entry
3 4 5 6 7 8 |
# File 'lib/specinfra/command/base/routing_table.rb', line 3 def check_has_entry(destination) if destination == "default" destination = "0.0.0.0/0" end "ip route show #{destination}" end |