Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3fd0f commit bde3fb1Copy full SHA for bde3fb1
providers/pip.rb
@@ -162,6 +162,8 @@ def which_pip(nr)
162
::File.join(nr.virtualenv,'/bin/pip')
163
elsif ::File.exists?(node['python']['pip_location'])
164
node['python']['pip_location']
165
+ elsif new_resource.command
166
+ new_resource.command
167
else
168
'pip'
169
end
resources/pip.rb
@@ -35,3 +35,4 @@ def initialize(*args)
35
attribute :group, :regex => Chef::Config[:group_valid_regex]
36
attribute :options, :kind_of => String, :default => ''
37
attribute :environment, :kind_of => Hash, :default => {}
38
+attribute :command, :kind_of => String, :default => nil
0 commit comments