On Sep 18, 2009, at 4:46 PM, James Turnbull wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Markus Roberts wrote:
>> Here are some ideas, with no promises as to quality:
>
> Thanks for the ideas - quality or otherwise! :P
>
>>
>> * Multiple gems (one for bin, one for sbin) with a dependency
>
> Don't think that will work or at least if it does it'll be fairly  
> messy.
>
>> * Something like an exconf.rb to do what we need in the install
>
> Okay - will look at this - depends when extconf.rb is executed.
> Gems require that all binaries are specified in the executables line
> in the specification and if a binary specified isn't in bindir then
> gem creation fails.  Suckage.

Can't you have something like:

task :prepare_for_stupid_gem do
   sh "mv sbin/* bin"
end

task gem => :prepare_for_stupid_gem

task :functional_gem => :gem do
   sh "rm bin/*" # remove the good and bad
   sh "git reset --hard" # just bring back the good parts
end

$ rake functional_gem

Beautiful, *and* functional.

>
>> * File a feature request upstream
>
> Done by Luke two years ago:
>
> http://rubyforge.org/tracker/index.php?func=detail&aid=11604&group_id=126&atid=578
>
>> * Monkey patch yaml...no wait, that's not right.
>
> Let's move to JSON ... oh wait ... :)


-- 
Criminal: A person with predatory instincts who has not sufficient
capital to form a corporation. --Howard Scott
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to