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: generate-ci-cd-yaml.rb
    path of file: ./repos/server-edition/internal-scripts
    
    the code of the file until where you have to start completion: #!/usr/bin/env ruby
require 'erb'
require_relative '../lib/general_support'
require_relative '../lib/ci_workflow_support'

class TemplateContext
  include GeneralSupport
  include CiWorkflowSupport

  def get_binding
    binding
  end
end

class CiCdYamlGenerationApp
  ROOT = GeneralSupport::ROOT
  WORKFLOWS_SUBPATH = ".
    
  def generate_yaml_file_from_template(template_name:, output_name: nil, **vars)
    input_path  = "#{ROOT}/#{WORKFLOWS_SUBPATH}/#{template_name}.yml.erb"
    output_path = "#{ROOT}/#{WORKFLOWS_SUBPATH}/#{output_name || template_name}.yml"
    puts "Regenerating #{WORKFLOWS_SUBPATH}/#{output_name || template_name}.yml"

    template_src = File.read(input_path, mode: 'r:utf-8')
    erb = ERB.new(template_src, trim_mode: '-', eoutvar: '@erb_out')
    erb.location = input_path

    context = TemplateContext.new
    vars.each_pair do |name, value|
      context.define_singleton_method(name) do
        value
      end
    end
    result = erb.result(context.get_binding)

    File.open(output_path, 'w:utf-8') do |f|
      f.write(result)
    end
  end