Sha256: 6e3b3a781834ab2b85500bed8e6a85539dad2efe38fe6680b0cf312b9dad1c41

Contents?: true

Size: 489 Bytes

Versions: 29

Compression:

Stored size: 489 Bytes

Contents

class Specinfra::Command::Openbsd::Base::Interface < Specinfra::Command::Base::Interface 
  class << self
    def get_speed_of(name)
      "ifconfig #{name} | grep 'media\:' | perl -pe 's|.*media\:.*\\((.*?)\\)|\\1|'"
    end

    def check_has_ipv4_address(interface, ip_address)
      "ifconfig #{interface} | grep -w inet | cut -d ' ' -f 2"
    end

    def check_has_ipv6_address(interface, ip_address)
      "ifconfig #{interface} | grep -w inet6 | cut -d ' ' -f 2"
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
specinfra-2.7.0 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.6.0 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.5.0 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.4.5 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.4.4 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.4.3 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.4.2 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.4.1 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.4.0 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.3.2 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.3.1 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.3.0 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.2.4 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.2.3 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.2.2 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.2.1 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.2.0 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.1.1 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.1.0 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.4 lib/specinfra/command/openbsd/base/interface.rb