Method: Inspec::Resources::WindowsFirewall#method_missing
- Defined in:
- lib/inspec/resources/windows_firewall.rb
#method_missing(method_name, *arguments, &_block) ⇒ Object
Access to return values from Powershell via ‘its(“PROPERTY”)` and `have_PROPERTY “VALUE”`
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/inspec/resources/windows_firewall.rb', line 49 def method_missing(method_name, *arguments, &_block) property = normalize_for_have_access(method_name) if method_name.to_s.start_with? "has_" expected_value = arguments.first respond_to_have(property, expected_value) else access_property(property) end end |