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.38.0 lib/serverspec/type/default_gateway.rb
serverspec-2.37.2 lib/serverspec/type/default_gateway.rb
serverspec-2.37.1 lib/serverspec/type/default_gateway.rb
serverspec-2.37.0 lib/serverspec/type/default_gateway.rb
serverspec-2.36.1 lib/serverspec/type/default_gateway.rb
serverspec-2.36.0 lib/serverspec/type/default_gateway.rb
serverspec-2.35.0 lib/serverspec/type/default_gateway.rb
serverspec-2.34.0 lib/serverspec/type/default_gateway.rb
serverspec-2.33.0 lib/serverspec/type/default_gateway.rb
serverspec-2.32.0 lib/serverspec/type/default_gateway.rb
serverspec-2.31.1 lib/serverspec/type/default_gateway.rb
serverspec-2.31.0 lib/serverspec/type/default_gateway.rb
serverspec-2.30.1 lib/serverspec/type/default_gateway.rb
serverspec-2.30.0 lib/serverspec/type/default_gateway.rb
serverspec-2.29.2 lib/serverspec/type/default_gateway.rb
serverspec-2.29.1 lib/serverspec/type/default_gateway.rb
serverspec-2.29.0 lib/serverspec/type/default_gateway.rb
serverspec-2.28.0 lib/serverspec/type/default_gateway.rb
serverspec-2.27.0 lib/serverspec/type/default_gateway.rb
serverspec-2.26.0 lib/serverspec/type/default_gateway.rb