Sha256: 4cb2d4d130ca65f1e610735fc66479f3fa495e7ca8be6dbbc67b2db612dbd439
Contents?: true
Size: 547 Bytes
Versions: 14
Compression:
Stored size: 547 Bytes
Contents
module Serverspec::Type class WindowsFirewall < Base def exists? @runner.check_firewall_exists(@name) end def tcp? @runner.check_firewall_has_protocol(@name, 'TCP') end def has_localport?(port) @runner.check_firewall_has_localport(@name, port) end def inbound? @runner.check_firewall_has_direction(@name, 'Inbound') end def enabled? @runner.check_firewall_is_enabled(@name) end def allowed? @runner.check_firewall_has_action(@name, 'Allow') end end end
Version data entries
14 entries across 14 versions & 2 rubygems