I need to call a shell script from rails, with a specific shell user.
Example:
update_response = '#{deploy_dir}/./update.sh'
By default my system is using root.
I would like to know, given this example, if you have how to specify the user and if you have a way to generalize the script calls to the same user.