Posts by Erick Veras • 13 points
4 posts
-
0
votes2
answers44
viewsA: set shell user to call script in Rails
Solution found using the shell itself to call the script with another user. update_response = `su -c '#{deploy_dir}/./update.sh' - #{user}` We can from this solution create a generic function for…
-
0
votes2
answers44
viewsQ: set shell user to call script in Rails
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 user. I would like to know, given this…
-
0
votes0
answers22
viewsQ: I need to create exceptions that do something already by default and have the same behavior as Standarterror
Hello, I work with Rails and use Sentry to log errors from my applications automatically. When an exception is thrown the error is not generated, so I have to force the error capture through the…
ruby-on-railsasked Erick Veras 13 -
1
votes1
answer326
viewsQ: How to change the values of a Hash?
I need a loop to change the values of this object { [ "Begin", "Dom" ] => 0, [ "Begin", "Seg" ] => 8, [ "Begin", "Ter" ] => 10, [ "Begin", "Qua" ] => 30, [ "Begin", "Qui" ] => 20, […