mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Don't mention skip
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
09bbc7e2e7
commit
b034b1aafd
1 changed files with 0 additions and 1 deletions
|
@ -255,7 +255,6 @@ control "whatruns" do
|
|||
end
|
||||
```
|
||||
|
||||
* `only_if` results in a skipped result for the control and all tests in the control, and is the only supported way of skipping an InSpec control. Other methods relying on RSpec-specific features such as `before` and `skip` may not work in the future.
|
||||
* Only one `only_if` is permitted per `control` block; if multiple `only_if` blocks are present, only the last one will be honored.
|
||||
* `only_if` may also be used outside a control block. In that case, it will be used to skip all controls in the current file.
|
||||
* To implement complex logic, use Ruby 'or' (`||`) and 'and' (`&&`) inside your `only_if` block:
|
||||
|
|
Loading…
Add table
Reference in a new issue