Apologies for this - but I did not think about this question hard enough. I did in Show password using view.html.erb - #4 by jeff.ohrstrom
Where I answered:
You could try to add a sleep 3
or something similar in after.sh.erb
. If you look at job_script_content.sh
you’ll see the execution flow. after.sh.erb
is invoked after the script, but before it creates the yml that will show the connect button. So I think this is the spot to wait/sleep/verify before moving on.
And to add more to that answer: the after.sh.erb
blocks execution. So if you sleep in it, it will actually halt the entire script and then after the after.sh.erb
script completes will it write the connection.yml
which will turn your card from starting to running.