Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Use :install as the default action for python_pip #29

Merged
merged 2 commits into from Feb 13, 2013
Merged

Use :install as the default action for python_pip #29

merged 2 commits into from Feb 13, 2013

Conversation

sethvargo
Copy link
Contributor

@@ -19,6 +19,13 @@
#

actions :install, :upgrade, :remove, :purge
default_action :install

# Covers 0.10.8 and earlier :default_action
Copy link
Member

Choose a reason for hiding this comment

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

If this is used on earlier versions, #default_action will throw MethodNotFound as it is currently written, so backwards compat is moot. Could add a defined? check on it maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I think the intent is lost there a bit, you can use one or the other, but both doesn't make sense :) Now paging @jtimberman for verification I'm not making things up again.

jtimberman pushed a commit that referenced this pull request Feb 13, 2013
…default_action

Use :install as the default action for python_pip
@jtimberman jtimberman merged commit 359f7a3 into poise:master Feb 13, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants