Module: Warbler::ExecutableHelper
- Included in:
- Traits::Gemspec, Traits::NoGemspec
- Defined in:
- lib/warbler/executable_helper.rb
Instance Method Summary collapse
Instance Method Details
#executable ⇒ Object
21 22 23 |
# File 'lib/warbler/executable_helper.rb', line 21 def executable config.executable ||= default_executable end |
#update_archive_add_executable(jar) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/warbler/executable_helper.rb', line 9 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 |