Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked frompoise/python

Commit2cc384b

Browse files
committed
Merge pull requestpoise#1 from optiflows-cookbooks/COOK-4183
Looks better, thanks
2 parentsf4b6af6 +e822c71 commit2cc384b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎providers/virtualenv.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ def whyrun_supported?
3434
end
3535
Chef::Log.info("Creating virtualenv#{new_resource} at#{new_resource.path}")
3636
interpreter=new_resource.interpreter ?" --python=#{new_resource.interpreter}" :""
37-
options={:user=>new_resource.owner,:group=>new_resource.group}
38-
options[:environment]={'HOME'=> ::File.expand_path("~#{new_resource.owner}")}ifnew_resource.owner
39-
shell_out!("#{virtualenv_cmd}#{interpreter}#{new_resource.options}#{new_resource.path}",options)
37+
execute"#{virtualenv_cmd}#{interpreter}#{new_resource.options}#{new_resource.path}"do
38+
usernew_resource.ownerifnew_resource.owner
39+
groupnew_resource.groupifnew_resource.group
40+
environment({'HOME'=> ::Dir.home(new_resource.owner)})ifnew_resource.owner
41+
end
4042
new_resource.updated_by_last_action(true)
4143
end
4244
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp