Correct docs for the file resource (#2115)

The current docs refer to a method called `link_target` which does not
exist. `link_path` provides the functionality.

Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
Adam Leff 2017-08-31 16:51:33 -04:00 committed by GitHub
parent feb755933f
commit 1a651f1741

View file

@ -213,16 +213,11 @@ The `have_mode` matcher tests if a file has a mode assigned to it:
### link_path
The `link_path` matcher tests if the file exists at the specified path:
The `link_path` matcher tests if the file exists at the specified path. If the file is a symlink,
InSpec will resolve the symlink and return the ultimate linked file:
its('link_path') { should eq '/some/path/to/file' }
### link_target
The `link_target` matcher tests if a file that is linked to this file exists at the specified path:
its('link_target') { should eq '/some/path/to/file' }
### match
<%= partial "/shared/matcher_match" %>