You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: runner_setup_scripts.rb
    path of file: ./repos/gitlabhq/app/controllers/concerns
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RunnerSetupScripts
  extend ActiveSupport::Concern

  private

  def private_runner_setup_scripts
    i
    
  def private_runner_setup_scripts
    instructions = Gitlab::Ci::RunnerInstructions.new(os: script_params[:os], arch: script_params[:arch])
    output = {
      install: instructions.install_script,
      register: instructions.register_command
    }

    if instructions.errors.any?
      render json: { errors: instructions.errors }, status: :bad_request
    else
      render json: output
    end