Skip to content
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

Merged
merged 5 commits into from
May 3, 2018
Merged

Split inspec into a core gem. #3008

merged 5 commits into from
May 3, 2018

Conversation

miah
Copy link
Contributor

@miah miah commented Apr 30, 2018

This adds a inspec-core.gemspec to allow InSpec to be dependent on train-core which is distributed without support for additional cloud providers.

Signed-off-by: Miah Johnson <[email protected]>
@miah miah requested a review from a team as a code owner April 30, 2018 21:21
Copy link
Contributor

@clintoncwolfe clintoncwolfe left a 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'
Copy link
Contributor

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/ }
Copy link
Contributor

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.

Copy link
Contributor

@jquick jquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @miah !

@jquick jquick added the Type: Enhancement Improves an existing feature label May 3, 2018
@jquick jquick merged commit 67bbbb6 into master May 3, 2018
@jquick jquick deleted the miah/inspec_core branch May 3, 2018 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants