rbenv
rbenv copied to clipboard
Purpose of handler
What's the purpose of rehash rbenv
? Rehash is called manually from tasks/main.yml:151 or tasks/main.yml:182
It it notifies the handler instead, we could install gems (env: system
so now default gems plugin available) and rbenv rehash
would happen at the very end.
@leonelgalan this issue is actual now?
Yeah, but I discovered that handlers are only "triggered" at the end of the playbook's run. So if we install bundler, we need to manually rbenv rehash
in order to have bundle available before the playbook finishes.
I wish there was a handler-like task that could be triggered at the end of the recipe's run or manually for DRYness. So it's might be a non-issue.
I have nothing against to run rehash
immediately after installation bundler
. I think it is a true way.
If you think that should be divided rbenv global {{rbenv.ruby_version}}
& rbenv renash
- I think that this can be done. Essentially it will not change, but it will be obvious.