Class: Serverspec::Type::DefaultGateway
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::DefaultGateway
show all
- Defined in:
- lib/serverspec/type/default_gateway.rb
Instance Attribute Summary
Attributes inherited from Base
#name
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #inspect, #to_ary
Instance Method Details
#interface ⇒ Object
7
8
9
|
# File 'lib/serverspec/type/default_gateway.rb', line 7
def interface
@runner.get_default_gateway(:interface)
end
|
#ipaddress ⇒ Object
3
4
5
|
# File 'lib/serverspec/type/default_gateway.rb', line 3
def ipaddress
@runner.get_default_gateway(:gateway)
end
|
#to_s ⇒ Object
11
12
13
|
# File 'lib/serverspec/type/default_gateway.rb', line 11
def to_s
'Default Gateway'
end
|