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: render_templates_from_folder.rb
    path of file: ./repos/foreman/app/services/foreman
    
    the code of the file until where you have to start completion: module Foreman
  class RenderTemplatesFromFolder
    class ProvisioningTemplateFromFolder < ::ProvisioningTemplate
      self.table_name = 'templates'
      attr_accessor :template_path, :source_directory
    end

    attr_reader :source_dir
    
    def build_operatingsystem(name:)
      family = Operatingsystem.deduce_family(name)
      return unless family
      architecture = build_architecture(osfamily: family)
      family.constantize.new(
        name: name,
        major: 7,
        minor: 6,
        family: family,
        architectures: [architecture]
      )
    end