require 'iron_worker_ng/feature/ruby/merge_gem' module IronWorkerNG module Code class Builder < IronWorkerNG::Code::Base attr_accessor :builder_remote_build_command def initialize(*args, &block) @features = [] @fixators = [] @base_dir = '' @dest_dir = '' @remote_build_command = nil @full_remote_build = false @use_local_iron_worker_ng = false runtime(:ruby) end def bundle(container, local = false) @exec = IronWorkerNG::Feature::Common::MergeExec::Feature.new(self, '__builder__.rb', {}) super(container, local) if builder_remote_build_command container.get_output_stream(@dest_dir + '__builder__.sh') do |builder| builder.write < res.marshal_dump.to_json) BUILDER_RUBY end end end end end