Mike McQuaid d8adae0f92 formulary: read from formula in opt prefix.
We want to prefer the newer/versioned formulae when possible but this
is preferable to a random cached formula or, worse, no formula.

This means `brew info foo` will never complain that `foo` is a missing
formula.
2017-01-09 21:42:09 +00:00
..
2017-01-03 18:08:02 +00:00
2017-01-04 11:13:41 +00:00
2016-12-30 20:20:13 +00:00
2016-11-21 08:48:26 +00:00
2016-11-10 15:01:29 +01:00
2016-12-20 10:22:30 +00:00
2016-11-13 23:00:47 +01:00
2016-12-30 20:20:13 +00:00
2016-12-30 20:20:13 +00:00
2017-01-06 16:35:41 +00:00
2017-01-04 11:13:41 +00:00
2017-01-04 11:13:41 +00:00
2016-11-13 23:00:47 +01:00
2016-12-20 10:22:30 +00:00
2016-12-30 20:20:13 +00:00
2017-01-04 00:56:06 +00:00
2016-12-13 01:53:05 +00:00
2016-11-10 15:09:36 -08:00

Homebrew's Formula API

This is the (partially) documented public API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!