Sha256: 97bc4fb2a688372bd7f0a5fde6ad8cb0252b6a716518c4d2a066e33a4b72182a

Contents?: true

Size: 681 Bytes

Versions: 17

Compression:

Stored size: 681 Bytes

Contents

require 'libgems/installer'

module LibGems
  class Installer

    def app_script_text(bin_file_name)
      <<-TEXT
#{shebang bin_file_name}
#
# This file was generated by BPM.
#
# The application '#{@spec.name}' is installed as part of an bpkg, and
# this file is here to facilitate running it.
#

version = "#{LibGems::Requirement.default}"

if ARGV.first =~ /^_(.*)_$/ and LibGems::Version.correct? $1 then
  version = $1
  ARGV.shift
end

gem '#{@spec.name}', version

path = LibGems.bin_path('#{@spec.name}', '#{bin_file_name}', version)
shebang = File.open(path){|f| f.readline }

if shebang =~ /^\#\!.*ruby/
  load path
else
  exec path, *ARGV
end
TEXT
    end

  end
end


Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bpm-1.0.0 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.rc.4 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.rc.3 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.rc.2 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.rc.1 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.13 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.12 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.11 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.10 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.9 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.8 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.6 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.5 lib/bpm/libgems_ext/installer.rb
bpm-1.0.0.beta.4 lib/bpm/libgems_ext/installer.rb
bpm-0.1.4 lib/bpm/libgems_ext/installer.rb
bpm-0.1.3 lib/bpm/libgems_ext/installer.rb
bpm-0.1.2 lib/bpm/libgems_ext/installer.rb