-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split inspec into a core gem. #3008
Conversation
Signed-off-by: Miah Johnson <[email protected]>
Signed-off-by: Miah Johnson <[email protected]>
Signed-off-by: Miah Johnson <[email protected]>
Signed-off-by: Jared Quick <[email protected]>
Signed-off-by: Jared Quick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of maintainability comments, nothing to block for today. Great work!
require 'rake/testtask' | ||
require 'passgen' | ||
require 'train' | ||
require_relative 'tasks/maintainers' | ||
require_relative 'tasks/spdx' | ||
|
||
Bundler::GemHelper.install_tasks name: 'inspec' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to have a Rake task for building the inspec-core gem, as well?
spec.files = %w{README.md MAINTAINERS.toml MAINTAINERS.md LICENSE | ||
inspec-core.gemspec Gemfile CHANGELOG.md} + | ||
Dir.glob('{bin,docs,examples,lib}/**/*', File::FNM_DOTMATCH) | ||
.reject { |f| File.directory?(f) || f =~ /aws|azure|gcp/ } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should (eventually) make this regex more obvious - possibly make it a variable or env var. This will be a brittle point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @miah !
This adds a
inspec-core.gemspec
to allow InSpec to be dependent ontrain-core
which is distributed without support for additional cloud providers.