Sha256: 647213a3785eafce33c6bfab704f486a7222d7404068b6315648156bd4c55411

Contents?: true

Size: 295 Bytes

Versions: 285

Compression:

Stored size: 295 Bytes

Contents

class Specinfra::Command::Linux::Base::Bond < Specinfra::Command::Base::Bond
  class << self
    def check_exists(name)
      "ip link show #{name}"
    end

    def check_has_interface(name, interface)
      "grep -o 'Slave Interface: #{interface}' /proc/net/bonding/#{name}"
    end
  end
end

Version data entries

285 entries across 285 versions & 3 rubygems

Version Path
specinfra-2.37.4 lib/specinfra/command/linux/base/bond.rb
specinfra-2.37.3 lib/specinfra/command/linux/base/bond.rb
specinfra-2.37.2 lib/specinfra/command/linux/base/bond.rb
specinfra-2.37.1 lib/specinfra/command/linux/base/bond.rb
specinfra-2.37.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.18 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.17 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.16 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.15 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.14 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.13 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.12 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.11 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.10 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.9 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.8 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.7 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.6 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.5 lib/specinfra/command/linux/base/bond.rb
specinfra-2.36.4 lib/specinfra/command/linux/base/bond.rb