X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c4e7c6d5a1a9604c1c1e53a5aa749eb1e45f92a1..5d17dfc6124a19ff7c9ebce607699d3e3f415bad:/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