Execute shell command at recipe runtime
I need to collect the output of a shell command. The shell command includes a username, which is created in a preceding recipe.
The problem is that when using Kernel#` to execute the command, it is evaluated immediately and fails because the user does not exist yet.
I need the shell command to be “queued” to be run with its recipe, as opposed to immediately. How can this be done?