Sha256: 00d4a196480bb7c568491dafcb3e30b9b6b2c43761bfc913aa9b3b15235f53dc

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 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_ipv4_address(@name, ip_address)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta8 lib/serverspec/type/interface.rb
serverspec-2.0.0.beta7 lib/serverspec/type/interface.rb
serverspec-2.0.0.beta6 lib/serverspec/type/interface.rb
serverspec-2.0.0.beta5 lib/serverspec/type/interface.rb
serverspec-2.0.0.beta4 lib/serverspec/type/interface.rb
serverspec-2.0.0.beta3 lib/serverspec/type/interface.rb