Commit graph

3143 commits

Author SHA1 Message Date
Miah Johnson
bf28482350
Merge pull request #4043 from inspec/ap/no-resource-capitalize
Wrap resources in backticks and remove resource name capitalizing
2019-05-08 23:49:25 -07:00
Chef Expeditor
6d56b3e4d9
Bump version to 4.4.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 23:25:17 +00:00
Miah Johnson
5dd4356abf
Merge pull request #4042 from inspec/mj/resources
Relocate core resources from lib/resources to lib/inspec/resources
2019-05-08 16:24:59 -07:00
Chef Expeditor
845ecea1e7
Bump version to 4.4.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 20:25:05 +00:00
Miah Johnson
25382bc281 Update require path in main resource loader
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-08 13:09:54 -07:00
Miah Johnson
0abac967f5 Update resource requires after relocation
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-08 13:09:54 -07:00
Miah Johnson
4172ae48fa Relocate resources to inspec/resources
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-08 13:09:54 -07:00
Chef Expeditor
b2a18a7aa4
Bump version to 4.4.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 20:01:20 +00:00
Chef Expeditor
fbb4b78e51
Bump version to 4.4.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 20:00:26 +00:00
Miah Johnson
11b8da3283
Merge branch 'master' into mj/encoding 2019-05-08 12:59:55 -07:00
Chef Expeditor
654a6617d3
Bump version to 4.4.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 19:58:16 +00:00
Chef Expeditor
08a92b510d
Bump version to 4.4.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 19:56:42 +00:00
Miah Johnson
1edfeae5f4
Merge pull request #4025 from inspec/mj/3849
Enable user telemetry opt-in / opt-out on cli
2019-05-08 12:56:29 -07:00
Chef Expeditor
5a98792a9e
Bump version to 4.4.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 19:49:36 +00:00
Chef Expeditor
2bdae3b296
Bump version to 4.4.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 19:37:27 +00:00
Miah Johnson
9eeb8274cb
Merge pull request #3954 from cc-build/distro-identity
First step to get inspec names changeable
2019-05-08 12:37:12 -07:00
Chef Expeditor
59b5ee5260
Bump version to 4.4.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 19:32:48 +00:00
Chef Expeditor
ff82a7e2dc
Bump version to 4.4.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 19:24:07 +00:00
Miah Johnson
37ea6f2f77
Merge pull request #4023 from inspec/zenspider/minitest
Modernize use of Minitest.
2019-05-08 12:23:49 -07:00
Alex Pop
d7f06f98f1 Wrap resources in backticks and remove resource name capitalizing
Signed-off-by: Alex Pop <alexpop@users.noreply.github.com>
2019-05-08 20:17:51 +01:00
Chef Expeditor
4628036b57
Bump version to 4.4.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-08 19:08:17 +00:00
Miah Johnson
d000f20f34 Update Collector#reset to clear telemetry_toggled_off
Updated the name of #reset -> #reset! as we are modifying state of a
singeton.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-08 00:36:45 -07:00
Miah Johnson
871b0e9a38 Ensure telemetry can be disabled
The #disable_telemetry method now toggles @telemetry_toggle_off.
The @telemetry_toggle_off is defaulted to false

The #telemetry_enabled? method now checks @telemetry_toggle_off
and we generally check the configuration. We do not flip
@telemetry_toggle_off based on the content of the configuration.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-08 00:30:24 -07:00
Miah Johnson
046d4567ae rubocop
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 19:10:42 -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
659b4b373a Remove # encoding: utf8 magic comments
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 16:06:23 -07:00
Chef Expeditor
1d3bd603aa
Bump version to 4.4.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-06 19:58:27 +00:00
Clinton Wolfe
ec91ac9ee0
Rename 'attribute' DSL method to 'input' (#4008)
Rename 'attribute' DSL method to 'input'
2019-05-06 15:58:09 -04:00
Artem Sidorenko
96353a708a First step to get inspec names changeable
for community distributions

Signed-off-by: Artem Sidorenko <artem.sidorenko@t-systems.com>
2019-05-06 18:40:35 +02: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
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
Ryan Davis
476c6878b3 Modernize use of Minitest.
+ Turn off verbosity in Rakefile by default. Use `rake V=1` to turn back on.
+ MiniTest -> Minitest everywhere.
+ MiniTest::Unit::TestCase -> Minitest::Test everywhere.
+ Updated minitest doco urls to official and up-to-date site.
+ Normalize requires. Only needs "minitest/autorun" and "minitest/pride".

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-03 15:01:57 -07:00
Chef Expeditor
04ad6351d8
Bump version to 4.3.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-05-03 17:52:04 +00: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
Clinton Wolfe
3bfc0cec68 Add input() DSL method, could use some DRY up
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-30 23:56:17 -04:00
Clinton Wolfe
f54abf9719 How was value: ever working?
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-30 23:28:23 -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
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
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
tyler-ball
d1a3c55863 Correcting missing version for InSpec
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-29 17:55:13 -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
Chef Expeditor
9b13bcb953
Bump version to 4.2.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2019-04-26 18:00:08 +00:00
Clinton Wolfe
154824128c Make sure --input-file change made it in
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-26 13:14:32 -04:00