fnichol/chef-rvm — Issue #68: notifies from within rvm_shell doesn't trigger
Author: cswilliams
Created: 2012-01-26 08:55:48+00:00
State: open

Hi,
I am trying to use notifies from within rvm_shell but having trouble.

For example:

ruby_block "a block" do
block do
Chef::Log.info("my block ran")
end

action :nothing
end

rvm_shell "a command" do
code "echo foobar"
notifies :create, "ruby_block[a block]", :immediately
end

results in the output:
[Thu, 26 Jan 2012 00:49:14 -0800] INFO: Starting Chef Run (Version 0.9.12)
[Thu, 26 Jan 2012 00:50:07 -0800] INFO: Ran script[a command] successfully
[Thu, 26 Jan 2012 00:50:08 -0800] INFO: Chef Run complete in 14.732362 seconds
[Thu, 26 Jan 2012 00:50:08 -0800] INFO: cleaning the checksum cache
[Thu, 26 Jan 2012 00:50:09 -0800] INFO: Running report handlers
[Thu, 26 Jan 2012 00:50:09 -0800] INFO: Report handlers complete