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

Add platforms schema command #3346

Merged
merged 5 commits into from Sep 13, 2018
Merged

Add platforms schema command #3346

merged 5 commits into from Sep 13, 2018

Conversation

jquick
Copy link
Contributor

@jquick jquick commented Aug 31, 2018

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

Fixes #2488

This requires the downstream train PR to be merged first: inspec/train#347

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

@jerryaldrichiii jerryaldrichiii left a comment

Choose a reason for hiding this comment

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

Looks great, only a few cleanup items.

Gemfile Outdated
@@ -2,6 +2,8 @@
source 'https://rubygems.org'
gemspec name: 'inspec'

gem 'train', :git => 'https://github.com/inspec/train.git', :branch => 'jq/add_platforms_export'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can remove this now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not till train gem is pushed out.

inspec.gemspec Outdated
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.3'

spec.add_dependency 'train', '~> 1.4', '>= 1.4.35'
# spec.add_dependency 'train', '~> 1.4', '>= 1.4.35'
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 uncomment this 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes once train is released we will update these 2

out.exit_status.must_equal 0
data = JSON.parse(out.stdout)
data.class.must_equal Array
data.size.must_be :>, 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how we officially feel about multiple arguments not being in ()...but I prefer it.

Copy link
Contributor

@miah miah left a comment

Choose a reason for hiding this comment

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

Thanks @jquick

Signed-off-by: Jared Quick <jquick@chef.io>
Signed-off-by: Jared Quick <jquick@chef.io>
@jquick jquick changed the title [DO NOT MERGE] Add platforms schema command Add platforms schema command Sep 13, 2018
@jquick jquick merged commit 9277209 into master Sep 13, 2018
@jquick jquick deleted the jq/schema_train_platforms branch September 13, 2018 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants