chef-infrainspec

Execute a command before or after an InSpec test


I wonder if anyone has or can create a sample code which demonstrates how to execute a shell script after (or before) InSpec test.

The primary idea is to use RSpec after block to clean up resources allocated during the test run.


Solution