mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
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:
parent
feb755933f
commit
1a651f1741
1 changed files with 2 additions and 7 deletions
|
@ -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" %>
|
||||
|
|
Loading…
Reference in a new issue