inspec/test
Adam Leff 6ed5379134 Error and exit when using --sudo locally
Running `inspec exec` with --sudo locally produces unintended results
given that we cannot escalate local Ruby methods after we're already
running. --sudo is meant to only be used with remote targets. We do
not currently enforce that.

This change will print an error for the user if they attempt to use
--sudo with a local exec and exit non-zero.

Signed-off-by: Adam Leff <adam@leff.co>
2017-05-02 12:41:02 +02:00
..
cookbooks/os_prepare Docker resource (#1566) 2017-04-24 10:47:03 -04:00
functional Error and exit when using --sudo locally 2017-05-02 12:41:02 +02:00
integration/default Docker resource (#1566) 2017-04-24 10:47:03 -04:00
resource Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
unit rename SimpleConfig / parse_config / parse_config_file options 2017-04-26 23:18:40 +02:00
docker_run.rb travis experiment: lower docker concurrency 2016-08-10 12:52:21 +01:00
docker_test.rb Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
helper.rb Docker resource (#1566) 2017-04-24 10:47:03 -04:00
test-extra.yaml split up tests for travis 2015-09-23 01:51:51 +02:00
test.yaml split up tests for travis 2015-09-23 01:51:51 +02:00