From c4decd76fb353c9e8f0bcb07203f214434fc5395 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 27 Feb 2010 17:26:27 +0000 Subject: String.undent for prettier HEREDOCs --- Library/Formula/ack.rb | 3 -- Library/Formula/android-sdk.rb | 17 +++++----- Library/Formula/mysql.rb | 53 +++++++++++++++--------------- Library/Formula/ruby-enterprise-edition.rb | 16 ++++----- Library/Formula/sip.rb | 11 +++---- Library/Formula/thrift.rb | 6 ++-- Library/Homebrew/extend/ARGV.rb | 51 ++++++++++++++-------------- Library/Homebrew/extend/string.rb | 15 +++++++++ Library/Homebrew/global.rb | 1 + 9 files changed, 92 insertions(+), 81 deletions(-) create mode 100644 Library/Homebrew/extend/string.rb (limited to 'Library') diff --git a/Library/Formula/ack.rb b/Library/Formula/ack.rb index 27f730947..2a418a344 100644 --- a/Library/Formula/ack.rb +++ b/Library/Formula/ack.rb @@ -1,9 +1,6 @@ require 'formula' class Ack - - - - KeepAlive - - Label - com.mysql.mysqld - Program - #{bin}/mysqld_safe - RunAtLoad - - UserName - #{`whoami`.chomp} - WorkingDirectory - #{HOMEBREW_PREFIX}/var - - + def startup_plist; <<-EOPLIST.undent + + + + + KeepAlive + + Label + com.mysql.mysqld + Program + #{bin}/mysqld_safe + RunAtLoad + + UserName + #{`whoami`.chomp} + WorkingDirectory + #{HOMEBREW_PREFIX}/var + + EOPLIST end end diff --git a/Library/Formula/ruby-enterprise-edition.rb b/Library/Formula/ruby-enterprise-edition.rb index cdc6696a0..fe2671a8e 100644 --- a/Library/Formula/ruby-enterprise-edition.rb +++ b/Library/Formula/ruby-enterprise-edition.rb @@ -16,18 +16,18 @@ class RubyEnterpriseEdition