Interact with the rails console or execute ad-hoc scripts in a application running Ruby On Rails.
Configuration
To proxy the
rails console
command, execute the following command within your root application path.shellhoop run --name railsc-demo --command 'rails console'
To proxy ad-hoc executions add the command
rails runner -
.shellhoop run --name rails-adhoc-demo --command 'rails runner -'
How to Use
Users can now connect and perform ad-hoc executions.
shellhoop connect railsc-demo
rails console
commandshellhoop exec rails-adhoc-demo -i 'puts "Hello World"'
puts "Hello World"
as an ad-hoc execution.