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
Conversation
Signed-off-by: Jared Quick <jquick@chef.io>
2b9ffd8
to
2dc0f2e
Compare
Signed-off-by: Jared Quick <jquick@chef.io>
Signed-off-by: Jared Quick <jquick@chef.io>
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.
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' |
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.
I think we can remove this now.
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.
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' |
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 uncomment this 😄
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.
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 |
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.
Not sure how we officially feel about multiple arguments not being in ()
...but I prefer it.
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 @jquick
Signed-off-by: Jared Quick <jquick@chef.io>
Signed-off-by: Jared Quick <jquick@chef.io>
Signed-off-by: Jared Quick jquick@chef.io
Fixes #2488
This requires the downstream train PR to be merged first: inspec/train#347