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

Update shell detect to work with platforms #2712

Merged
merged 3 commits into from
Feb 20, 2018
Merged

Conversation

jquick
Copy link
Contributor

@jquick jquick commented Feb 20, 2018

The shell detect intro was using its own os logic here. This pr's updates it to use the same logic as the cli detect command. This now works for platforms accordingly.
screen shot 2018-02-20 at 6 48 17 am

Fixes #2711
Fixes #2687
Signed-off-by: Jared Quick jquick@chef.io

Signed-off-by: Jared Quick <jquick@chef.io>
@jquick jquick requested a review from a team as a code owner February 20, 2018 11:51
@@ -65,6 +65,23 @@ def params
h
end

def detect(indent: 0, color: 39)
str = ''
Copy link
Contributor

Choose a reason for hiding this comment

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

Should that be private? I am not sure if we want to expose this via our resource

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

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Very nice improvement

Signed-off-by: Jared Quick <jquick@chef.io>
@jquick jquick merged commit 378e7c5 into master Feb 20, 2018
@jquick jquick deleted the jq/fix_shell_detect branch February 20, 2018 12:37
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.

3 participants