Stephan Renatus
1a38799a83
Merge pull request #313 from chef/chris-rock/readme-examples
...
add readme to examples
2015-12-11 15:16:34 +01:00
Christoph Hartmann
c21f50426b
update title of examples
2015-12-11 14:57:21 +01:00
Christoph Hartmann
37b8e4c3e4
add readme to examples
2015-12-11 14:57:21 +01:00
Stephan Renatus
9ce50b8c53
Merge pull request #315 from chef/chris-rock/shell-improvements
...
improve shell prompt and help
2015-12-11 14:54:43 +01:00
Christoph Hartmann
7422306ba7
lint fix
2015-12-11 14:34:28 +01:00
Christoph Hartmann
95c7ba8fe5
simplify prompt color setting
2015-12-11 14:29:31 +01:00
Christoph Hartmann
100df85b27
improve shell prompt and help
2015-12-11 14:03:36 +01:00
Christoph Hartmann
d3fc0031d6
Merge pull request #303 from chef/sr/fix256
...
port resource: array attributes, resource alternative
2015-12-08 20:43:05 +01:00
Stephan Renatus
1f1b035589
[resource/port] update documentation
2015-12-08 20:33:36 +01:00
Stephan Renatus
652d51e9dc
[resource/port] add port(addr, port)
variant
2015-12-08 20:33:36 +01:00
Stephan Renatus
8532dd7034
[resource/port] change attribute names to plural, indicating arrays
...
see discussion in #256
2015-12-08 20:33:36 +01:00
Christoph Hartmann
bada329f27
Merge pull request #301 from chef/adamleff/file-bugfix
...
File permission checks should return false unless file exists
2015-12-08 20:30:43 +01:00
Adam Leff
c146a76679
File permission checks should return false unless file exists
...
Currently, #readable?, #writeable?, and #executable? will incorrectly
return true if the file does not exist.
In addition, I took the opportunity to refactor the File resource to
make it easier to write unit tests and supplied a full unit test
suite for this resource.
2015-12-08 19:57:34 +01:00
Christoph Hartmann
7a4e49120d
Merge pull request #297 from chef/sr/bugfix295
...
[resources/processes] add user(s), state(s) attribute
2015-12-08 13:46:03 +01:00
Stephan Renatus
7a1cd660c3
[resources/processes] add users, states attribute; update docs
...
processes('bash').user does not actually make much sense for a resource
that is a list -- different entries can belong to different users.
Analogous for processes('bash').state.
The attributes 'users' and 'states' expose the unique values
corresponding to that property of entries in the process list.
Fixes #295 .
2015-12-08 13:06:27 +01:00
Dominik Richter
b1ec95e343
Merge pull request #293 from chef/sr/json-config
...
read config from file/stdin
2015-12-08 11:32:26 +01:00
Dominik Richter
ef487e3753
handle json parser errors
2015-12-07 16:11:53 +01:00
Stephan Renatus
ae4420a736
add --json-config=
and --diagnose
flags to inspect configurations
...
Because of the way per-command arguments are handled, this is a little
different from the way e.g. kitchen handles it: any inspec command can
take the flag `--diagnose` to have it dump configuration first.
This add support for a JSON configuration file, where both
inspec detect --json-config=config.json
and
inspec detect --json-config=- <config.json
allow for reading the JSON config. There is no validation of its keys
in place.
2015-12-07 16:10:15 +01:00
Stephan Renatus
bf15c05f7f
Merge pull request #299 from chef/chris-rock/os-resource
...
support string and symbol for os resource
2015-12-07 12:22:58 +01:00
Christoph Hartmann
d20b96ae40
Merge pull request #283 from chef/sr/shell-help
...
Minor `inspec shell` improvements
2015-12-07 11:50:07 +01:00
Stephan Renatus
33f2fe3dde
hide summary output when running interactively (inspec shell)
2015-12-07 11:12:41 +01:00
Stephan Renatus
17a80d32a9
remove second welcome
2015-12-07 11:12:41 +01:00
Stephan Renatus
c6fd8c5880
mention help [resource]
2015-12-07 11:12:41 +01:00
Christoph Hartmann
dcb09802d3
support string and symbol for os resource
2015-12-07 11:11:55 +01:00
Christoph Hartmann
34d75180b1
Merge pull request #298 from chef/sr/apache_conf_tests
...
[resources/apache_conf]: add tests, fix bug
2015-12-07 11:09:26 +01:00
Stephan Renatus
79f48afa6c
[resources/apache_conf]: add tests, fix bug
...
before, the resource would throw an exception when include_files
returned nil (i.e., [].flatten!)
added basic unit tests capturing the include_files behaviour
2015-12-07 10:50:48 +01:00
Stephan Renatus
a97ae08abd
Merge pull request #287 from chris-rock/single-resource-test
...
Doc: add doc for single unit test
2015-12-07 08:51:26 +01:00
Christoph Hartmann
640eba852b
add doc for single unit test
2015-12-07 08:48:07 +01:00
Christoph Hartmann
0907419e8d
Merge pull request #294 from chef/jcd/minor-readme-repair
...
fix small grammar error
2015-12-04 18:37:40 +01:00
Julian C. Dunn
73a3c90998
fix small grammar error
2015-12-04 11:29:48 -05:00
Christoph Hartmann
7c393a1891
Merge pull request #291 from chef/sr/fix-find_files
...
revert to old find_files interface
2015-12-04 14:41:36 +01:00
Stephan Renatus
324ba14a6b
fix optional type argument handling
2015-12-04 14:27:32 +01:00
Stephan Renatus
390e0fcca7
restore old find_files interface
...
- fixes #276
- basic test for find_files
2015-12-04 14:15:45 +01:00
Christoph Hartmann
fb2d6d25dc
Merge pull request #289 from chef/adamleff/wrl-support
...
Adding support for Wind River Linux
2015-12-04 12:21:16 +01:00
Adam Leff
e0c356dae7
Adding support for Wind River Linux
...
WRL is used as the OS on Cisco Nexus devices and acts like a Red
Hat variant. These changes add support for WRL.
2015-12-03 17:41:11 -05:00
Christoph Hartmann
e2774dcb66
Merge pull request #286 from chef/sr/gem-workaround
...
travis workarounds
2015-12-03 16:11:28 +01:00
Stephan Renatus
5e44ac0396
using travis-ci's services:docker
2015-12-03 15:48:08 +01:00
Stephan Renatus
cac222090e
workaround travis-ci's gem version
2015-12-03 15:45:19 +01:00
Christoph Hartmann
fd2d84a9ed
Merge pull request #281 from artem-sidorenko/mint-vagrant-box
...
Support mint in the integration tests
2015-12-02 08:39:30 +01:00
Artem Sidorenko
46f60f05af
Support mint in the integration tests
2015-12-02 06:33:07 +01:00
Dominik Richter
67fc932b3a
Merge pull request #278 from chef/chris-rock/optimize-cli-help
...
align cli documentation with cli
2015-12-01 21:22:19 +01:00
Christoph Hartmann
cca75c5e8c
align cli documentation with cli
2015-12-01 11:19:04 +01:00
Dominik Richter
3d0a1b81d8
Merge pull request #269 from chef/chris-rock/shell-help
...
Feature: Add shell `help resource` command
2015-12-01 11:13:49 +01:00
Christoph Hartmann
766fe47b87
add inline documentation
2015-12-01 10:56:47 +01:00
Christoph Hartmann
6a6cff1526
feature: add help command for resources
2015-12-01 10:56:47 +01:00
Dominik Richter
d42529f309
Merge pull request #270 from chef/chris-rock/etc-group-centos
...
improvement: add etc_group support for centos and add integration test
2015-12-01 10:55:27 +01:00
Christoph Hartmann
2c8a8ccb25
improvement: add etc_group support for centos and add integration test
2015-12-01 10:40:12 +01:00
Dominik Richter
63a868ea42
Merge pull request #277 from chef/chris-rock-patch-extension
...
Remove description of custom resource
2015-12-01 10:38:47 +01:00
Christoph Hartmann
c4dcd17f82
Remove description of custom resource
...
- will be superseded by compliance profiles
2015-11-30 19:49:54 +01:00
Dominik Richter
bf0ab1b7cd
Merge pull request #272 from chef/chris-rock/docs
...
remove json doc for windows_feature
2015-11-30 15:35:04 +01:00