Miah Johnson
0b9833dd96
condense true/false enabled tests
...
Because of the way the test system loads I cannot guarantee that
`Inspec::Config.cached` won't be nil. I have to always pass in a mock
config object with our setting.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 19:06:38 -07:00
Miah Johnson
ea0643cc14
Handle load_config better
...
private method to minimize external interface
default enabled to false if unable to find setting in configuration
add reader for config
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 19:04:51 -07:00
Miah Johnson
6881c210ad
Gather all telemetry options and return them
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 19:03:30 -07:00
Miah Johnson
3695094218
cli -> --enable-telemetry
and default to false
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 18:55:11 -07:00
Miah Johnson
c9ae6a9d20
Add a missing doc
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-03 16:28:01 -07:00
Miah Johnson
b51ad8acb8
When telemetry is disabled Inspec.record_telemetry_data doesn't record
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-03 16:13:45 -07:00
Miah Johnson
ac2d782266
Pass in mock config object to tests and validate telemetry_enabled?
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-03 16:07:24 -07:00
Miah Johnson
f1b1b3eccf
Ensure the collector is aware of the config class
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-03 16:06:25 -07:00
Miah Johnson
122246bcc4
load our configuration and set telemetry status
...
Allow overriding config object
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-02 20:14:15 -07:00
Miah Johnson
78f7f000f5
Allow enabling or disabling telemetry from the cli
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-02 20:13:37 -07:00
Miah Johnson
b0ee14a204
Expose configuration for telemetry as method
...
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-02 20:12:53 -07:00
Chef Expeditor
1bba904dad
Bump version to 4.3.4 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-01 19:00:55 +00:00
Miah Johnson
063a7d82e7
Merge pull request #4004 from inspec/mj/4003
...
Update resource registry_key documentation example
2019-05-01 12:00:36 -07:00
Chef Expeditor
9a15388431
Bump version to 4.3.3 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-01 18:24:53 +00:00
Miah Johnson
a5180126f1
Merge pull request #4014 from inspec/mj/readmeUpdate1
...
Update software names in readme
2019-05-01 11:24:38 -07:00
Mary Jinglewski
f196aa4985
Update software names in readme
...
Signed-off-by: Mary Jinglewski <mjinglewski@chef.io>
2019-05-01 14:14:59 -04:00
Miah Johnson
5c00a44d71
Update resource registry_key documentation example
...
ref: https://github.com/inspec/inspec/issues/4003
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-04-30 17:04:12 -07:00
Chef Expeditor
b4ae6cb342
Executed '.expeditor/update_dockerfile.sh'
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-30 01:39:48 +00:00
Chef Expeditor
a6feb2f32c
Bump version to 4.3.2 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-30 00:43:30 +00:00
Clinton Wolfe
b5373dafd2
Update to Ruby 2.6.2 and Rubygems 3.0.3 ( #3994 )
...
Update to Ruby 2.6.2 and Rubygems 3.0.3
2019-04-29 20:43:16 -04:00
Tim Smith
45eadb69df
Use File instead of IO
...
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-29 17:09:48 -07:00
Chef Expeditor
d87c24514f
Bump version to 4.3.1 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-30 00:03:18 +00:00
Clinton Wolfe
f0a34f57a7
Accidently not updating main InSpec version via Expeditor ( #3997 )
...
Accidently not updating main InSpec version via Expeditor
2019-04-29 20:03:02 -04:00
tyler-ball
d1a3c55863
Correcting missing version for InSpec
...
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 17:55:13 -06:00
tyler-ball
5ac54d85e9
Accidently not updating main InSpec version via Expeditor
...
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 17:53:41 -06:00
Clinton Wolfe
60ec509788
Comment regarding inspec-bin in Gemfile
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 19:37:55 -04:00
Chef Expeditor
910b50719e
Bump version to 4.3.0 by Chef Expeditor
...
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-29 23:24:37 +00:00
Clinton Wolfe
1696572f5b
Package inspec executable as a separate gem ( #3982 )
...
Package inspec executable as a separate gem
2019-04-29 19:24:17 -04:00
tyler-ball
9e8169cb87
Need inspec-bin Gemfile in the gem for appbundler
...
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 15:47:33 -06:00
tyler-ball
d4e7c91f5b
Rebasing - inspec-bin needs to be in sync with inspec
...
Expeditor will handle this once this PR is merged
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 15:47:33 -06:00
tyler-ball
9fc9466d40
Need 1 Gemfile.lock with all deps (inspec and inspec-bin)
...
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 15:47:33 -06:00
Clinton Wolfe
7116de3929
Adjust license-acceptance pins to avoid conflict
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
cfda9ea5ca
Wrap appbundler block to force lazy evaluation
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
44059a84e4
Bump license-acceptance dep to 1.0
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
d043dab94b
linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
32950a05b9
Do not depend on inspec-bin from Gemfile
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Jaymala Sinha
2a4f3a168d
Build inspec-bin gem too
...
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
2938d12be7
Update file list for gemspec
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
0ec6e16fc1
Update README and gem description
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 15:47:26 -06:00
tyler-ball
60125d890b
Habitat should install inspec-bin and activate inspec from that
...
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 15:47:26 -06:00
Clinton Wolfe
8bed893da2
An unportable and slow approach to installing
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:10 -06:00
Clinton Wolfe
47ae89d46b
linting
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:10 -06:00
Clinton Wolfe
a282204b41
Update exe location in functional test helpers
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:10 -06:00
Clinton Wolfe
e404bafd7a
bundle exec works
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Clinton Wolfe
d448fdcb8d
version updating works
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Clinton Wolfe
54aa413e0c
inspec-bin skeleton
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Clinton Wolfe
1c3604cb1e
Remove empty executables list from gemspecs
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Clinton Wolfe
44fcc6d874
Remove binary file from gemspecs
...
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-29 13:27:09 -06:00
Tim Smith
65f27bf31b
More omnibus def updates from Chef
...
Getting the file path right should fix the build failures
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-29 10:26:54 -07:00
Tim Smith
366245b398
Update to Ruby 2.6.2 and Rubygems 3.0.3
...
We thought we were riding the latest, but actually the overrides file wasn't wired up the same way it is in Chef. This properly sources that file and does a few other syncs from the chef config so we can diff things more easily.
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-29 10:06:36 -07:00