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.91.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.90.1 lib/specinfra/command/linux/base/bond.rb
specinfra-2.90.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.89.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.88.2 lib/specinfra/command/linux/base/bond.rb
specinfra-2.88.1 lib/specinfra/command/linux/base/bond.rb
specinfra-2.88.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.87.2 lib/specinfra/command/linux/base/bond.rb
specinfra-2.87.1 lib/specinfra/command/linux/base/bond.rb
specinfra-2.87.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.86.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.85.1 lib/specinfra/command/linux/base/bond.rb
specinfra-2.85.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.84.1 lib/specinfra/command/linux/base/bond.rb
specinfra-2.84.0 lib/specinfra/command/linux/base/bond.rb
specinfra-2.83.4 lib/specinfra/command/linux/base/bond.rb
specinfra-2.83.3 lib/specinfra/command/linux/base/bond.rb
specinfra-2.83.2 lib/specinfra/command/linux/base/bond.rb
specinfra-2.83.1 lib/specinfra/command/linux/base/bond.rb
specinfra-2.83.0 lib/specinfra/command/linux/base/bond.rb