Class: MissionControl::Servers::ScriptsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mission_control/servers/scripts_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
# File 'app/controllers/mission_control/servers/scripts_controller.rb', line 5

def show
  response.content_type = 'text/plain'

  # Render the script directly or from a file
  render plain: script_content
end