Sha256: 51f0f8fa02ba8d0bd0fa2b2cffe40928a1825cb8b73560a01684c8486fd280d3

Contents?: true

Size: 253 Bytes

Versions: 84

Compression:

Stored size: 253 Bytes

Contents

module Serverspec::Type
  class DefaultGateway < Base
    def ipaddress
      @runner.get_default_gateway(:gateway)
    end

    def interface
      @runner.get_default_gateway(:interface)
    end

    def to_s
      'Default Gateway'
    end
  end
end

Version data entries

84 entries across 84 versions & 4 rubygems

Version Path
serverspec-2.25.0 lib/serverspec/type/default_gateway.rb
serverspec-2.24.3 lib/serverspec/type/default_gateway.rb
serverspec-2.24.2 lib/serverspec/type/default_gateway.rb
serverspec-2.24.1 lib/serverspec/type/default_gateway.rb
serverspec-2.24.0 lib/serverspec/type/default_gateway.rb
serverspec-2.23.1 lib/serverspec/type/default_gateway.rb
serverspec-2.23.0 lib/serverspec/type/default_gateway.rb
serverspec-2.22.0 lib/serverspec/type/default_gateway.rb
serverspec-2.21.1 lib/serverspec/type/default_gateway.rb
serverspec-2.21.0 lib/serverspec/type/default_gateway.rb
serverspec-2.20.0 lib/serverspec/type/default_gateway.rb
serverspec-2.19.0 lib/serverspec/type/default_gateway.rb
serverspec-2.18.0 lib/serverspec/type/default_gateway.rb
serverspec-2.17.1 lib/serverspec/type/default_gateway.rb
serverspec-2.17.0 lib/serverspec/type/default_gateway.rb
serverspec-2.16.0 lib/serverspec/type/default_gateway.rb
serverspec-2.15.0 lib/serverspec/type/default_gateway.rb
serverspec-2.14.1 lib/serverspec/type/default_gateway.rb
serverspec-2.14.0 lib/serverspec/type/default_gateway.rb
serverspec-2.13.0 lib/serverspec/type/default_gateway.rb