New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifies from within rvm_shell doesn't trigger #68

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

Comments

Projects
None yet
2 participants
@cswilliams

cswilliams commented Jan 26, 2012

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

This comment has been minimized.

Show comment
Hide comment
@fnichol

fnichol Mar 12, 2012

Collaborator

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment