What should I use instead of ohai?

Sent from my Android phone.
Op 20 jun. 2013 14:42 schreef "Mike McQuaid" <notifications@github.com> het
volgende:

> In Library/Formula/passenger.rb:
>
> > +    system "cp -pR * #{prefix}/"
> > +
> > +    # The various scripts in bin cannot correctly locate their root directory
> > +    # when invoked as symlinks in /usr/local/bin. We create wrapper scripts
> > +    # to solve this problem.
> > +    system "mv #{bin} #{prefix}/orig-bin"
> > +    system "mkdir #{bin}"
> > +    Dir["#{prefix}/orig-bin/*"].each do |orig_script|
> > +      name = File.basename(orig_script)
> > +      ohai "Generating wrapper script #{bin}/#{name}"
> > +      File.open("#{bin}/#{name}", "w") do |f|
> > +        f.puts "#!/bin/sh"
> > +        f.puts "exec #{orig_script} \"$@\""
> > +      end
> > +      File.chmod(0755, "#{bin}/#{name}")
> > +    end
>
> Homebrew has it's own functions for all of these functions. Also, don't
> use ohai here.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mxcl/homebrew/pull/19981/files#r4795517>
> .
>