class Serverspec::Type::WindowsFirewall
Public Instance Methods
allowed?()
click to toggle source
# File lib/serverspec/type/windows_firewall.rb, line 23 def allowed? @runner.check_firewall_has_action(@name, 'Allow') end
enabled?()
click to toggle source
# File lib/serverspec/type/windows_firewall.rb, line 19 def enabled? @runner.check_firewall_is_enabled(@name) end
exists?()
click to toggle source
# File lib/serverspec/type/windows_firewall.rb, line 3 def exists? @runner.check_firewall_exists(@name) end
has_localport?(port)
click to toggle source
# File lib/serverspec/type/windows_firewall.rb, line 11 def has_localport?(port) @runner.check_firewall_has_localport(@name, port) end
inbound?()
click to toggle source
# File lib/serverspec/type/windows_firewall.rb, line 15 def inbound? @runner.check_firewall_has_direction(@name, 'Inbound') end
tcp?()
click to toggle source
# File lib/serverspec/type/windows_firewall.rb, line 7 def tcp? @runner.check_firewall_has_protocol(@name, 'TCP') end