Sha256: 6079900628944e8df411559375a8c7102ae297892726d7de549fffe58517d409

Contents?: true

Size: 362 Bytes

Versions: 32

Compression:

Stored size: 362 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
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta27 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta26 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta25 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta24 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta23 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta22 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta21 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta20 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta19 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta18 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta17 lib/specinfra/command/openbsd/base/interface.rb
specinfra-2.0.0.beta16 lib/specinfra/command/openbsd/base/interface.rb