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 profile version to archive #1351

Merged
merged 2 commits into from
Dec 14, 2016
Merged

Conversation

jaxxstorm
Copy link

Fixes #1350

Probably needs some discussion here...

@chris-rock
Copy link
Contributor

Great improvement @jaxxstorm Can you rebase and fix the lint error? Happy to merge it then.

@@ -399,9 +399,12 @@ def archive_name(opts)
name = params[:name] ||
fail('Cannot create an archive without a profile name! Please '\
'specify the name in metadata or use --output to create the archive.')
version = params[:version] ||
fail('Cannot create an archive with a profile version! Please '\
'specify the version in metadat or use --output to create the archive.')
Copy link
Contributor

Choose a reason for hiding this comment

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

metadata

@jaxxstorm
Copy link
Author

@chris-rock I fixed the lint error, but we're still failing here. Any tips?

@chris-rock
Copy link
Contributor

@jaxxstorm We need to update our functional tests as well:
https://github.com/chef/inspec/blob/master/test/functional/inspec_archive_test.rb#L12-L15
and https://github.com/chef/inspec/blob/master/test/functional/inspec_archive_test.rb#L28-L31

You can quickly run the specific tests locally with: bundle exec ruby -W -Ilib:test test/functional/inspec_archive_test.rb

Signed-off-by: Lee Briggs <lbriggs@apptio.com>
Signed-off-by: Lee Briggs <lbriggs@apptio.com>
@jaxxstorm
Copy link
Author

Woot, finally got there, thanks @chris-rock !

@chris-rock
Copy link
Contributor

@jaxxstorm Cool. Thank you for the quick turnaround!

@chris-rock chris-rock merged commit d9186f3 into inspec:master Dec 14, 2016
@jaxxstorm jaxxstorm deleted the archive_versioning branch December 15, 2016 08:28
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

2 participants