require_relative '../feature/ruby/merge_gem' require_relative '../feature/ruby/merge_gemfile' require_relative '../feature/ruby/merge_worker' module IronWorkerNG module Code class Ruby < IronWorkerNG::Code::Base include IronWorkerNG::Feature::Ruby::MergeGem::InstanceMethods include IronWorkerNG::Feature::Ruby::MergeGemfile::InstanceMethods include IronWorkerNG::Feature::Ruby::MergeWorker::InstanceMethods def create_runner(zip, init_code) IronWorkerNG::Logger.info 'Creating ruby runner' unless @worker IronWorkerNG::Logger.error 'No worker specified' raise 'No worker specified' end zip.get_output_stream('runner.rb') do |runner| runner.write < 'ruby', :klass => IronWorkerNG::Code::Ruby)