bash "plenv install #{new_resource.name}" do user new_resource.user environment "HOME" => "#{node["plenv"]["user_home_root"]}/ #{new_resource.user}" path ["#{node["plenv"]["user_home_root"]}/ #{new_resource.user}/.plenv/bin"] # `path` option seems to not work correctly... code <<-COMMAND #{node["plenv"]["user_home_root"]}/#{new_resource.user}/.plenv/bin/plenv install #{new_resource.name} #{new_resource.install_options} COMMAND not_if { Dir.exists?("#{node["plenv"]["user_home_root"]}/ #{new_resource.user}/.plenv/versions/#{new_resource.name}") } end end end providers/install.rb https://github.com/kentaro/chef-plenv/blob/master/providers/install.rb
tells you why it makes the decision that it did, so you can reason about the current and proposed state of your system, hence the name. http://www.opscode.com/blog/2012/09/07/chef-10-14-0-released/