mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
Merge pull request #272 from chef/chris-rock/docs
remove json doc for windows_feature
This commit is contained in:
commit
bf0ab1b7cd
1 changed files with 1 additions and 11 deletions
|
@ -4084,20 +4084,10 @@ The |nginx| user is typically ``www-data``, but on |centos| it's ``nginx``. The
|
||||||
|
|
||||||
windows_feature
|
windows_feature
|
||||||
=====================================================
|
=====================================================
|
||||||
Use the ``windows_feature`` |inspec resource| to test features on |windows|. The ``Get-WindowsFeature`` cmdlet returns the following values: ``Property Name``, ``DisplayName``, ``Description``, ``Installed``, and ``InstallState``, returned as a |json| object similar to:
|
Use the ``windows_feature`` |inspec resource| to test features on |windows|. It uses the ``Get-WindowsFeature`` cmdlet under the hood.
|
||||||
|
|
||||||
**Stability: Experimental**
|
**Stability: Experimental**
|
||||||
|
|
||||||
.. code-block:: javascript
|
|
||||||
|
|
||||||
{
|
|
||||||
"Name": "XPS-Viewer",
|
|
||||||
"DisplayName": "XPS Viewer",
|
|
||||||
"Description": "The XPS Viewer reads, sets permissions, and digitally signs XPS documents.",
|
|
||||||
"Installed": false,
|
|
||||||
"InstallState": 0
|
|
||||||
}
|
|
||||||
|
|
||||||
Syntax
|
Syntax
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
A ``windows_feature`` |inspec resource| block declares the name of the |windows| feature, tests if that feature is installed, and then returns information about that feature:
|
A ``windows_feature`` |inspec resource| block declares the name of the |windows| feature, tests if that feature is installed, and then returns information about that feature:
|
||||||
|
|
Loading…
Reference in a new issue