Browse files

make perlbrew_run synchronous

  • Loading branch information...
1 parent b4695de commit 49fbafeed51e79833509cc79554af8707c1d7ef0 @xdg xdg committed Mar 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 cookbooks/perlbrew/providers/run.rb
View
3 cookbooks/perlbrew/providers/run.rb
@@ -28,7 +28,7 @@
'PERLBREW_ROOT' => node['perlbrew']['perlbrew_root'],
'PERLBREW_HOME' => node['perlbrew']['perlbrew_root']
}
- bash new_resource.name do
+ b = bash new_resource.name do
environment new_resource.environment.merge(perlbrew_env)
cwd new_resource.cwd if new_resource.cwd
code <<-EOC
@@ -37,5 +37,6 @@
#{new_resource.command}
EOC
end
+ b.run_action(:run)
new_resource.updated_by_last_action(true)
end

0 comments on commit 49fbafe

Please sign in to comment.