Sha256: 99fcd5d7a2b38cafc0b1a67a765a85d95a6572d54a539e361f7bf3b7771e18f0

Contents?: true

Size: 465 Bytes

Versions: 16

Compression:

Stored size: 465 Bytes

Contents

require_relative '../feature/binary/merge_exec'

module IronWorkerNG
  module Code
    class Binary < IronWorkerNG::Code::Base
      include IronWorkerNG::Feature::Binary::MergeExec::InstanceMethods

      def run_code
        <<RUN_CODE
chmod +x #{File.basename(@exec.path)}

LD_LIBRARY_PATH=. ./#{File.basename(@exec.path)} "$@"
RUN_CODE
      end
    end
  end
end

IronWorkerNG::Code::Base.register_type(:name => 'binary', :klass => IronWorkerNG::Code::Binary)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
iron_worker_ng-0.7.4 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.7.3 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.7.2 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.7.1 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.7.0 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.8 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.7 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.6 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.5 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.4 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.3 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.2 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.1 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.6.0 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.5.1 lib/iron_worker_ng/code/binary.rb
iron_worker_ng-0.5.0 lib/iron_worker_ng/code/binary.rb