diff options
| author | Max Howell | 2012-03-16 12:58:39 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-16 21:06:17 +0000 |
| commit | e6cb8cbee92693c96bfcd939f4de55e0875eb507 (patch) | |
| tree | d844f5d067b1bb3ab9cc61cd4302ddf3c37cedf0 /Library/Homebrew/cmd/tap.rb | |
| parent | 2ace9422bc4c19be2d6a77e21e66c6dbd4c6bd52 (diff) | |
| download | brew-e6cb8cbee92693c96bfcd939f4de55e0875eb507.tar.bz2 | |
Pathname.atomic_write
Diffstat (limited to 'Library/Homebrew/cmd/tap.rb')
| -rw-r--r-- | Library/Homebrew/cmd/tap.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 13d9290e3..6d1a596a6 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -1,4 +1,3 @@ -require 'tempfile' HOMEBREW_LIBRARY = HOMEBREW_REPOSITORY/"Library" @@ -43,10 +42,7 @@ module Homebrew extend self end end - tf = Tempfile.new("brew-tap") - tf.write(ignores.uniq.join("\n")) - tf.close - mv tf.path, "#{HOMEBREW_LIBRARY}/Formula/.gitignore" + HOMEBREW_LIBRARY.join("Formula/.gitignore").atomic_write(ignores.uniq.join("\n")) end private |
