Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Verify command for chef which runs the specs for the components. #4

Merged
merged 3 commits into from
Mar 7, 2014

Conversation

sersut
Copy link

@sersut sersut commented Mar 6, 2014

This is good to go now.


def exit_with(status)
exit(status)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm having to deal with this in the ChefDK::CLI class tests right now. The approach I'm taking is that the subcommand's #run method returns an integer which is used as the exit code. The downside (but maybe benefit?) of this is that you have to put any "early exit" conditions in the run method as return statements.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah I was expecting I need to modify this when rebasing on your changes.

I like that approach. Prefer return over exit :)

I'll modify this bit during rebase.

@danielsdeleo
Copy link
Contributor

LGTM overall, just some organizational stuff.

@sersut
Copy link
Author

sersut commented Mar 7, 2014

@danielsdeleo should be good to go.

@danielsdeleo
Copy link
Contributor

LGTM 👍

sersut pushed a commit that referenced this pull request Mar 7, 2014
Verify command for chef which runs the specs for the components.
@sersut sersut merged commit db650db into master Mar 7, 2014
@danielsdeleo danielsdeleo deleted the CC-15 branch March 7, 2014 00:48
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants