From dabeaddebb8f4aa89f313e073a7f58b50556077b Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 27 Feb 2010 17:26:27 +0000 Subject: [PATCH] String.undent for prettier HEREDOCs --- Formula/ack.rb | 3 -- Formula/android-sdk.rb | 15 +++++---- Formula/mysql.rb | 53 +++++++++++++++--------------- Formula/ruby-enterprise-edition.rb | 16 ++++----- Formula/sip.rb | 11 +++---- Formula/thrift.rb | 6 ++-- 6 files changed, 50 insertions(+), 54 deletions(-) diff --git a/Formula/ack.rb b/Formula/ack.rb index 27f7309478..2a418a344c 100644 --- a/Formula/ack.rb +++ b/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/Formula/ruby-enterprise-edition.rb b/Formula/ruby-enterprise-edition.rb index cdc6696a08..fe2671a8ed 100644 --- a/Formula/ruby-enterprise-edition.rb +++ b/Formula/ruby-enterprise-edition.rb @@ -16,18 +16,18 @@ class RubyEnterpriseEdition