theforeman / foreman_hooks

Run custom hook scripts on Foreman events
http://m0dlx.com/blog/Extending_Foreman_quickly_with_hook_scripts.html
GNU General Public License v3.0
56 stars 50 forks source link

foreman-rake hooks:events[host/managed] doesnt list all events #39

Closed sean797 closed 7 years ago

sean797 commented 8 years ago

The below output doesn't include after_build & before_provision. I think it should?

[root@foreman ~]# foreman-rake hooks:events[host/managed]
after_commit
after_create
after_destroy
after_find
after_initialize
after_rollback
after_save
after_touch
after_update
after_validation
before_create
before_destroy
before_save
before_update
before_validation
create
destroy
update
MarBra commented 7 years ago

Any updates here? I have the same problem with foreman 1.11.0.7 and hooks 0.3.11.

dLobatog commented 7 years ago

@sean797 @MarBra I'm seeing it too, however the hooks work when I use it

sean797 commented 7 years ago

Nice, thanks @domcleal ! 👍