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

Skip to content

Commit bde3fb1

Browse files
committed
Added command within pip resource
1 parent 8b3fd0f commit bde3fb1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

providers/pip.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def which_pip(nr)
162162
::File.join(nr.virtualenv,'/bin/pip')
163163
elsif ::File.exists?(node['python']['pip_location'])
164164
node['python']['pip_location']
165+
elsif new_resource.command
166+
new_resource.command
165167
else
166168
'pip'
167169
end

resources/pip.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ def initialize(*args)
3535
attribute :group, :regex => Chef::Config[:group_valid_regex]
3636
attribute :options, :kind_of => String, :default => ''
3737
attribute :environment, :kind_of => Hash, :default => {}
38+
attribute :command, :kind_of => String, :default => nil

0 commit comments

Comments
 (0)