Sha256: 5e746f80a1fecc3edca654538add19b3461e2d46e92f74f3ed077de1c36f100a

Contents?: true

Size: 733 Bytes

Versions: 26

Compression:

Stored size: 733 Bytes

Contents

#--
# Copyright (c) 2013 Michal Papis.
# This source code is available under the MIT license.
# See the file LICENSE.txt for details.
#++

module Warbler
  module ExecutableHelper
    def update_archive_add_executable(jar)
      case executable
      when Array
        gem_name, executable_path = executable
        gem_with_version = config.gems.full_name_for(gem_name, config.gem_dependencies)
        bin_path = apply_pathmaps(config, File.join(gem_with_version, executable_path), :gems)
      else
        bin_path = apply_pathmaps(config, executable, :application)
      end
      add_main_rb(jar, bin_path, config.executable_params)
    end

    def executable
      config.executable ||= default_executable
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
warbler_updated-2.1.0 lib/warbler/executable_helper.rb
warbler-2.0.5 lib/warbler/executable_helper.rb
warbler-2.0.4 lib/warbler/executable_helper.rb
warbler-1.4.10 lib/warbler/executable_helper.rb
warbler-2.0.3 lib/warbler/executable_helper.rb
warbler-2.0.2 lib/warbler/executable_helper.rb
warbler-2.0.1 lib/warbler/executable_helper.rb
warbler-2.0.0 lib/warbler/executable_helper.rb
warbler-2.0.0.rc3 lib/warbler/executable_helper.rb
warbler-2.0.0.rc2 lib/warbler/executable_helper.rb
warbler-2.0.0.rc1 lib/warbler/executable_helper.rb
warbler-2.0.0.pre3 lib/warbler/executable_helper.rb
warbler-2.0.0.pre2 lib/warbler/executable_helper.rb
warbler-1.4.9 lib/warbler/executable_helper.rb
warbler-1.4.8 lib/warbler/executable_helper.rb
warbler-2.0.0.pre1 lib/warbler/executable_helper.rb
warbler-1.4.7 lib/warbler/executable_helper.rb
warbler-1.4.6 lib/warbler/executable_helper.rb
warbler-1.4.5 lib/warbler/executable_helper.rb
warbler-1.4.4 lib/warbler/executable_helper.rb