Per-executable wrappers?

Bill Caputo's Avatar

Bill Caputo

09 Jun, 2010 02:58 PM


Is it possible (say via the gem spec) to suppress the generation of an executable's wrapper (while having the wrappers generated for other files in the bin directory/executable array? I've been looking for a way to do this all morning and can't find anything beyond the command line --no-wrappers setting, but that appears to affect all of them.

Background: We have two executables in our bin directory: one is a simple bash script (which for other reasons we like to keep it that way) and the other is ruby code. Our current workaround has been to replace the bash script with a ruby system call, but like I said we'd prefer not do that in this case. Any help greatly appreciated.


  1. Support Staff 1 Posted by Eric Hodel on 09 Jun, 2010 04:39 PM

    Eric Hodel's Avatar

    It is not possible.

    Adding it as a feature would be complicated by having multiple versions installed.

    It could be implemented, but I don't know if it older versions would work correctly when you have multiple versions of the gem installed. That would be a reasonable restriction, though.

  2. 2 Posted by Bill Caputo on 09 Jun, 2010 05:58 PM

    Bill Caputo's Avatar

    Thanks drbrain,

    What we've done for now is add the needed context from the wrapper manually to our ruby executable that we would like to wrap and then using no-wrappers (this is an internally-used gem so not an issue for us to make that restriction).

    I can see where the multi-versions would complicate things, but in practice I think the restriction is reasonable (and for an executable that needs it, it probably always will in practice so backward-compatibility might be a problem).

    Thanks again, for the quick response.


  3. Nick Quaranto closed this discussion on 17 Jul, 2010 08:33 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac