diff options
| author | Jack Nagel | 2014-07-18 15:14:42 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-18 15:15:12 -0500 |
| commit | 49a97c280a35fe07bce036467da85ace0c006fa7 (patch) | |
| tree | fc46a04bd185a762a3d779c0892bf3c474674cc0 /Library/Homebrew/cmd | |
| parent | 1cc37470947ed594dbb42a4138b34d33c74cb17d (diff) | |
| download | brew-49a97c280a35fe07bce036467da85ace0c006fa7.tar.bz2 | |
Ask the filename object for the prefix
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 8bd1c4b9e..954f6eb78 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -192,10 +192,7 @@ module Homebrew puts output if ARGV.include? '--rb' - bottle_base = filename.to_s.gsub(bottle_suffix(bottle_revision), '') - File.open "#{bottle_base}.bottle.rb", 'w' do |file| - file.write output - end + File.open("#{filename.prefix}.bottle.rb", "w") { |file| file.write(output) } end end |
