Class: Serverspec::Type::Bridge

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/bridge.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, #to_ary, #to_s

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)

3
4
5
# File 'lib/serverspec/type/bridge.rb', line 3

def exists?
  @runner.check_bridge_exists(@name)
end

#has_interface?(interface) ⇒ Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/serverspec/type/bridge.rb', line 7

def has_interface?(interface)
  @runner.check_bridge_has_interface(@name, interface)
end