Merge pull request #1192 from cvent/shell

Add shell options
This commit is contained in:
Dominik Richter 2016-10-05 15:11:24 +02:00 committed by GitHub
commit 4d8a272d30
4 changed files with 16 additions and 1 deletions

View file

@ -210,6 +210,9 @@ inspec exec test.rb -t docker://container_id
# run with sudo
inspec exec test.rb --sudo [--sudo-password ...] [--sudo-options ...] [--sudo_command ...]
# run in a subshell
inspec exec test.rb --shell [--shell-options ...] [--shell-command ...]
```
### detect

View file

@ -32,6 +32,12 @@ module Inspec
desc: 'Additional sudo options for a remote scan.'
option :sudo_command, type: :string,
desc: 'Alternate command for sudo.'
option :shell, type: :boolean,
desc: 'Run scans in a subshell. Only activates on Unix.'
option :shell_options, type: :string,
desc: 'Additional shell options.'
option :shell_command, type: :string,
desc: 'Specify a particular shell to use.'
option :ssl, type: :boolean,
desc: 'Use SSL for transport layer encryption (WinRM).'
option :self_signed, type: :boolean,

View file

@ -14,6 +14,9 @@ Options:
[--sudo-password=SUDO_PASSWORD] # Specify a sudo password, if it is required.
[--sudo-options=SUDO_OPTIONS] # Additional sudo options for a remote scan.
[--sudo-command=SUDO_COMMAND] # Alternate command for sudo.
[--shell], [--no-shell] # Run scans in a subshell. Only activates on Unix.
[--shell-options=SHELL_OPTIONS] # Additional shell options.
[--shell-command=SHELL_COMMAND] # Specify a particular shell to use.
[--ssl], [--no-ssl] # Use SSL for transport layer encryption (WinRM).
[--self-signed], [--no-self-signed] # Allow remote scans with self-signed certificates (WinRM).
[--json-config=JSON_CONFIG] # Read configuration from JSON file (`-` reads from stdin).

View file

@ -14,6 +14,9 @@ Options:
[--sudo-password=SUDO_PASSWORD] # Specify a sudo password, if it is required.
[--sudo-options=SUDO_OPTIONS] # Additional sudo options for a remote scan.
[--sudo-command=SUDO_COMMAND] # Alternate command for sudo.
[--shell], [--no-shell] # Run scans in a subshell. Only activates on Unix.
[--shell-options=SHELL_OPTIONS] # Additional shell options.
[--shell-command=SHELL_COMMAND] # Specify a particular shell to use.
[--ssl], [--no-ssl] # Use SSL for transport layer encryption (WinRM).
[--self-signed], [--no-self-signed] # Allow remote scans with self-signed certificates (WinRM).
[--json-config=JSON_CONFIG] # Read configuration from JSON file (`-` reads from stdin).