Sha256: 8c5d4c7019c2eceb048272f900a8a2079a997736cb5afc2b9bfd49d6ec3c0aa3

Contents?: true

Size: 384 Bytes

Versions: 1

Compression:

Stored size: 384 Bytes

Contents

module Serverspec
  module Type
    class Interface < Base
      def speed
        ret = @runner.run_command(commands.get_interface_speed_of(@name))
        val = ret.stdout.strip
        val = val.to_i if val.match(/^\d+$/)
        val
      end

      def has_ipv4_address?(ip_address)
        @runner.check_interface_has_ipv4_address(@name, ip_address)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 lib/serverspec/type/interface.rb