Xu Cheng
4529df1246
git_available?: cache the result
2015-09-09 12:19:16 +08:00
Xu Cheng
71f794260b
add git utils
...
Two methods:
* `Utils.git_available?` checks whether git is installed.
* `Utils.ensure_git_installed!` installs git for users who don't install
Xcode or CLT.
2015-09-02 15:24:52 +08:00
Mike McQuaid
2c959a7d58
More API documentation.
...
And remove the documented stuff from the `example-formula.rb`.
Closes Homebrew/homebrew#43241 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-29 15:43:16 +01:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Jack Nagel
ff11789933
Close the socket after sending the file descriptor to the child
...
Fixes Homebrew/homebrew#39691 .
2015-05-12 21:53:04 -04:00
Jack Nagel
c07da9485f
The forked build process should never run at_exit handlers
...
We don't use at_exit anywhere that matters, but the test framework does.
2015-04-28 01:39:28 -04:00
Jack Nagel
913c12fd43
Keep subprocess code inside begin block
2015-04-25 23:22:58 -04:00
Jack Nagel
f7ded45bc7
Clean up socket and filesystem resources separately
2015-04-25 23:17:13 -04:00
Xu Cheng
06f72ab38f
move safe_fork into a standalone method
2015-04-15 19:51:54 +08:00
Jack Nagel
aaaab946ec
Make inreplace errors fatal
...
Closes Homebrew/homebrew#32649 .
Closes Homebrew/homebrew#32703 .
2014-09-28 01:11:31 -05:00
Jack Nagel
5c24b7330b
Read if no block is passed to Utils.popen_read
2014-07-11 15:52:39 -05:00
Jack Nagel
ad27b21cd1
Add popen wrapper that does not invoke the shell
2014-07-05 13:50:54 -05:00
Jack Nagel
4fd63dc4f8
Expose inreplace as a class method
2014-06-18 19:25:35 -05:00
Jack Nagel
7b389fbfed
Replace files atomically in inreplace
2014-03-26 16:07:49 -05:00
Jack Nagel
4fe0be37c0
Drop intermediate variable
2014-03-26 16:07:49 -05:00
Mike McQuaid
be3e60fc95
inreplace: odie for Homebrew developers.
2013-11-12 15:44:30 +00:00
Shaun Jackman
91e6c993f8
inreplace: Open the file as binary
...
Closes Homebrew/homebrew#22628 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-09-17 13:58:34 -05:00
Jason Whittle
2c23e71be3
let inreplace take a symbol
...
As discussed in https://github.com/mxcl/homebrew/pull/21936
Closes Homebrew/homebrew#21942 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-17 07:40:27 -07:00
Jack Nagel
c8e79c3309
Move inreplace off of Object
...
Closes Homebrew/homebrew#21163 .
2013-07-12 16:23:06 -05:00
Jack Nagel
d6929f96a5
Use OkJson directly
2013-06-22 21:34:03 -05:00
Jack Nagel
083b3c84d0
Add Utils::JSON to wrap the JSON implementation
2013-06-22 21:34:02 -05:00