notifies from within rvm_shell doesn't trigger #68

Open
cswilliams opened this Issue Jan 26, 2012 · 1 comment

Projects

None yet

2 participants

@cswilliams

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

@fnichol
Collaborator
fnichol commented Mar 12, 2012

Looks like I've neglected to set new_resource.updated_by_last_action(true) in all the LWRPs. I'll need to fix each of these which should solve the resource notifications. Thank you Foodcritic

@fnichol fnichol was assigned Mar 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment