Sha256: d55c8f4f6977e704da38d36d7c90f1e77d8a251557bc949f33978835949239cf

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

class Specinfra::Command::Freebsd::Base::Interface < Specinfra::Command::Base::Interface 
  class << self
    def check_exists(name)
      "ifconfig #{name}"
    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

4 entries across 4 versions & 1 rubygems

Version Path
specinfra-2.40.0 lib/specinfra/command/freebsd/base/interface.rb
specinfra-2.39.1 lib/specinfra/command/freebsd/base/interface.rb
specinfra-2.39.0 lib/specinfra/command/freebsd/base/interface.rb
specinfra-2.38.1 lib/specinfra/command/freebsd/base/interface.rb