Commit graph

107 commits

Author SHA1 Message Date
Miah Johnson
a4f4fe5231 chefstyle -a; https://github.com/chef/chefstyle/pull/74
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-07-08 17:22:50 -07:00
Ryan Davis
a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00
Miah Johnson
0255fe0e18 Fix unbounded dependencies
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-03 18:35:47 -07:00
Miah Johnson
23245df6d1 Replace jsonschema with json-schema.
Also just use json, its packaged with ruby already.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-01 22:04:36 -07:00
Miah Johnson
be53391565 Update author/email tags in gemspec
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-24 12:55:11 -07:00
Miah Johnson
f7575cca00 Remove more magic comments
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-09 13:24:25 -07: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
tyler-ball
63225931ec Updating license-acceptance version constraint to support 1.0 when it is released
Signed-off-by: tyler-ball <tball@chef.io>
2019-04-25 13:54:09 -06:00
Tim Smith
590dcc6d60 Bump the main inspec gem as well
I missed this one

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:21:46 -07:00
Clinton Wolfe
638d4440a5 Add license-acceptance library to gemspec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-11 10:33:04 -04:00
Clinton Wolfe
ccdd1cfffb Drop aws-sdk 2, move to train 2, add train-aws 0.1
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:24:46 -04:00
Clinton Wolfe
e4d17b6cc8
Merge pull request #3912 from inspec/cw/add-train-habitat
Include train-habitat gem with InSpec
2019-04-01 15:59:11 -04:00
Clinton Wolfe
1c5cb230e8 Include habitat gem with InSpec
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-01 15:10:16 -04:00
Tim Smith
bad372e47d Don't include plugin test files in the gem file
One of the test files is causing chef omnibus failures on Solaris for some reason, but really there's no reason to ship all these test files in the install artifact. This slims down the gem and install size a good amount. I'm open to a better regex if someone has opinions.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-03-31 14:32:20 -07:00
Clinton Wolfe
cbd0dacd39 Remove temporary reliance on Train branch
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-01 14:27:49 -05:00
Clinton Wolfe
304a1b9873 Temporarily pin train to 1.7.1
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-31 22:24:18 -05:00
Clinton Wolfe
e4a0f3bff0 Update train pin so inspec builds may succeed
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-25 15:36:36 -05:00
Noel Georgi
f1fbd518e5 Expose additional WinRM options for transport, basic auth, and SSPI (#3669)
Signed-off-by: Noel Georgi <git@frezbo.com>
2018-12-20 11:57:53 -05:00
Clinton Wolfe
c0a46cf841
UI Object for for CLI work (#3618)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-12-12 11:44:16 -05:00
Tim Smith
e4ce25b8a1 Adjust files included in gems to improve appbundler support (#3663)
Signed-off-by: Tim Smith <tsmith@chef.io>
2018-12-12 11:23:19 -05:00
Jared
79bf71d9e8 Pin train to 1.5.11 (#3657)
Signed-off-by: Jared Ledvina <jared@techsmix.net>
2018-12-11 09:00:24 -05:00
Tim Smith
6bc5c537a3 Further slim the files we ship in the gem artifact (#3647)
The artifact doesn't need the gemspec, gemfile or rakefile since we're not shipping tests already. Also there's no need for the changelog or maintainer file. For those a user should reference the github repo since these files are buried deep on the filesystem and not designed to be read through.

Signed-off-by: Tim Smith <tsmith@chef.io>
2018-12-04 10:54:17 -05:00
Jared Quick
f990b78b48
Pin to train 1.5.6 (#3568)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-11-01 16:23:37 -04:00
Jared Quick
8432cd73c4
Pin inspec to the new train. (#3531)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-18 16:37:56 -04:00
Jared Quick
f7551b3de3
Fix plugin issues on omni builds (#3499)
* Fix plugin issues on omni builds
* Fix gemspec to include etc dir.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-10-11 23:25:01 -04:00
Tim Smith
c674bdf250 Exclude docs and examples from the gem (#3471)
This greatly slims down the installed size of inspec in both Chef and
Chef-DK. This translates into faster installs which are of importance to
workstation users, but also smaller download sizes / CDN bills.

This slims the installed on disk from 2.9 MB to 2.0 MB (31%) and the gem
drops from 567k to 396k (30%).

Signed-off-by: Tim Smith <tsmith@chef.io>
2018-10-08 09:34:04 -04:00
Clinton Wolfe
857b9bb11c Plugins: Support for Train Plugins in InSpec (#3444)
* Unit tests passing for loading Train plugins
* detect works with a train test fixture
* Update fixture install of train-fixture-plugin
* Add functional tests for detect and shell when talking to a train plugin backend
* Update docs to reflect availability of Train plugins
* Functional test for install train plugin from path
* Working install train plugin from path, more tests for installing from odd locations
* PR Feedback

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-27 18:46:35 -04:00
Clinton Wolfe
0ced18841f
CLI Plugin Manager SubCommand (#3414)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-25 10:29:18 -04:00
Jared Quick
927720998c
Add platforms schema command (#3346)
* Add platforms schema command.
* Add functional test.
* Update tests with sorted export.
* Bump train version.
* Fix syntax in tests.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-13 15:36:17 -04:00
Miah Johnson
6e887ff4b7 Update rubyzip to resolve a directory traversal security vulnerability. (#3388)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-09-12 16:41:17 -04:00
Christoph Hartmann
df9036f6e4 inspec compliance: use multipart upload to support upload on windows (#3369)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:25:31 -04:00
Tom Qiang Wu
aa44c24b07 bump inspec/train version (#3331)
Obvious fix.
2018-08-28 15:53:13 -04:00
Jared Quick
d44eb67672
Bump train version for inspec. (#3147)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-14 15:26:00 -04:00
Jared Quick
f7181f3b23
Update inspec for the train azure msi fix. (#3068)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-17 14:40:54 -04:00
Jared Quick
8a45257a63
Bump train pin. (#3065)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-17 09:31:19 -04:00
David McCown
c195af11c3 Adds middleware dependecy for Azure (#3061)
We are adding this depdency until we can integrate our connection into
Train.

Signed-off-by: David McCown <dmccown@chef.io>
2018-05-16 15:20:25 -04:00
Jared Quick
40e7c1b23f
Add train GCP transport. (#3046)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-16 15:04:23 -04:00
Jerry Aldrich
e33619264f Add Cisco IOS enable_password support (#2905)
* Add IOS transport and `enable_password` support
* Remove Cisco IOS connection swap (moving to Train)
* Pin to Train 1.4.0

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-04-12 16:18:34 -04:00
Jared Quick
2726f8e2b8
Pin to Train 1.3.0. (#2898)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-03-29 12:51:10 -04:00
Jared Quick
7045fb9193 Bump Thor to version 0.20.0. (#2843)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-03-21 10:44:28 -07:00
Jared Quick
fafa681f5c
Set backend cache to defualt true. (#2827)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-03-15 15:08:34 -04:00
Jared Quick
ecb6d5b428 Pin inspec to train 1.1.x
Signed-off-by: Jared Quick <jquick@chef.io>
2018-02-14 17:37:31 -05:00
Jared Quick
42779e91a7 Setup azure resources into inspec.
Signed-off-by: Jared Quick <jquick@chef.io>
2018-02-07 16:05:58 -05:00
Jared Quick
839ab3eef4 Deprecate and warn when comparing against OS name with capitals/spaces (#2397)
* Testing train downcase platform names.
* Added NameCleaned tests and fixed some formatting.
* Clean up tests with helper method.
* Update to new gemfile and platform resource.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-01-04 14:15:02 -05:00
Adam Leff
5be9739ec1 Remove rainbow dependency, fix duplicate rake gem (#2374)
The version of Rainbow brought in as a direct dependency also depends
directly on Rake, and our pin of Rake was inaccurate. This was causing
Omnibus to build packages that contained two rake gems which would emit
"Unresolved specs during Gem::Specification.reset" warnings when
running InSpec.

Signed-off-by: Adam Leff <adam@leff.co>
2017-12-07 13:50:53 +01:00
Jared Quick
31578de5e4 Fix inspec appveyor test with the new local train transport (#2376)
* test appveyor with ruby#File

Signed-off-by: Jared Quick <jquick@chef.io>

* Update inspec train to version 0.31.1

Signed-off-by: Jared Quick <jquick@chef.io>
2017-12-06 15:18:38 -05:00
Jared Quick
d49f4e3fe1 Enable caching for backend calls (#2309)
* Enable caching for command and file calls to train
* Moved transport conn to connection and refactored tests
* Update caching flag to use train caching.
* Move caching flag to cli option.
* Add backed cache default from thor.
* Add hard disable for cache option and remove all cache from debug shell.
* Add comment to caching settings conditional.
* Force file cache on when caching enabled.
* Update gemspec for train 0.30.0.

Signed-off-by: Jared Quick <jquick@chef.io>
2017-12-04 16:40:14 -05:00
Adam Leff
46a3ca6eea
Bump train to 0.29.2 (#2327)
Train 0.29.1 includes a few regressions from 0.28 dealing with files.

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-21 14:04:23 -05:00
Adam Leff
4b9acb4800 Bump Rubocop to 0.49.1 (#2323)
* Bump Rubocop to 0.49.1

This change bumps Rubocop to 0.49.1. There have been a lot of changes
since 0.39.0 and this PR is hopefully a nice compromise of turning off
certain cops and updating our codebase to take advantage of new Ruby
2.3 methods and operators.

Signed-off-by: Adam Leff <adam@leff.co>

* Set end-of-line format to line-feed only, avoid Windows-related CRLF issues

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-21 08:49:41 +01:00