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

feat(*): add upgrade action support #135

Merged
merged 1 commit into from
Feb 5, 2019

Conversation

vdice
Copy link
Member

@vdice vdice commented Feb 1, 2019

Adds upgrade action support to porter (and the exec mixin).

Closes #123

@ghost ghost assigned vdice Feb 1, 2019
@ghost ghost added the review label Feb 1, 2019
copy(result[:len(m.Install)], dep.m.Install)
copy(result[len(m.Install):], m.Install)
m.Install = result
m.Install = prependSteps(dep.m.Install, m.Install)
Copy link
Member

Choose a reason for hiding this comment

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

👍 Yay! Thank you for tidying this up. It sparks much joy

}
return m.Execute()
// re-use Install's logic
return m.Install(commandFile)
Copy link
Member

Choose a reason for hiding this comment

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

In a follow-on PR, it's up for grabs to anyone (doesn't have to be you!) who would like to extract the logic from m.Install into a function that is named a bit more generically so that all of these functions can call into it, maybe m.ExecuteScript so that we don't need this comment.

It's a bit confusing to see uninstall calling to install here. I know it's because exec is an odd-ball mixin. 😀

@carolynvs
Copy link
Member

FYI, it's up to you if you want to prefix your PRs with feat/chore/fix. I don't mind, but I don't get too much out of it either. Just throwing that out there in case you weren't sure if it's required in these porter repos.

@carolynvs carolynvs merged commit 55e259c into getporter:master Feb 5, 2019
@ghost ghost removed the review label Feb 5, 2019
@vdice vdice deleted the feat/add-upgrade branch February 5, 2019 23:25
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.

2 participants