X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b6f73f7acffa9b2f37c78826ff6cee89987a7edc..b3b64d046641ccc39e4f4d6fab85a8b831732d51:/apps/workbench/app/controllers/virtual_machines_controller.rb diff --git a/apps/workbench/app/controllers/virtual_machines_controller.rb b/apps/workbench/app/controllers/virtual_machines_controller.rb index a62ba81b09..73231f8cc0 100644 --- a/apps/workbench/app/controllers/virtual_machines_controller.rb +++ b/apps/workbench/app/controllers/virtual_machines_controller.rb @@ -19,4 +19,14 @@ class VirtualMachinesController < ApplicationController end super end + + def webshell + return render_not_found if not Rails.configuration.shell_in_a_box_url + @webshell_url = Rails.configuration.shell_in_a_box_url % { + uuid: @object.uuid, + hostname: @object.hostname, + } + render layout: false + end + end