Sha256: 827ffcba1a48a3203399cd60fb29416902811f95796cd7316107a07e7f8d828d

Contents?: true

Size: 297 Bytes

Versions: 77

Compression:

Stored size: 297 Bytes

Contents

class Specinfra::Command::Base::RoutingTable < Specinfra::Command::Base
  class << self
    def check_has_entry(destination)
      if destination == "default"
        destination = "0.0.0.0/0"
      end
      "ip route show #{destination}"
    end

    alias :get_entry :check_has_entry
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
specinfra-2.82.25 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.24 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.23 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.22 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.21 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.20 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.19 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.18 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.17 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.16 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.15 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.14 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.13 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.12 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.11 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.10 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.9 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.8 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.7 lib/specinfra/command/base/routing_table.rb
specinfra-2.82.6 lib/specinfra/command/base/routing_table.rb