Skip to content

Commit

Permalink
fixes for [FC002] - Avoid string interpolation where not required
Browse files Browse the repository at this point in the history
  • Loading branch information
schisamo committed Feb 22, 2013
1 parent 9de0b0a commit 86d8484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions providers/pip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def pip_cmd(subcommand, version='')
def which_pip(nr)
if (nr.respond_to?("virtualenv") && nr.virtualenv)
::File.join(nr.virtualenv,'/bin/pip')
elsif "#{node['python']['install_method']}".eql?("source")
::File.join("#{node['python']['prefix_dir']}","/bin/pip")
elsif node['python']['install_method'].eql?("source")
::File.join(node['python']['prefix_dir'], "/bin/pip")
else
'pip'
end
Expand Down
4 changes: 2 additions & 2 deletions providers/virtualenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def load_current_resource
end

def virtualenv_cmd()
if "#{node['python']['install_method']}".eql?("source")
::File.join("#{node['python']['prefix_dir']}","/bin/virtualenv")
if node['python']['install_method'].eql?("source")
::File.join(node['python']['prefix_dir'], "/bin/virtualenv")
else
"virtualenv"
end
Expand Down

0 comments on commit 86d8484

Please sign in to comment.