Permalink
Browse files

Some String.dedent action

  • Loading branch information...
1 parent 3726f8d commit 53c72ccbaf970bf3940902e27f480536c41ae309 @mxcl mxcl committed with adamv Mar 9, 2010
Showing with 12 additions and 12 deletions.
  1. +12 −12 Library/Homebrew/formula_installer.rb
@@ -22,25 +22,25 @@ def expand_deps f
def pyerr dep
brew_pip = ' brew install pip &&' unless Formula.factory('pip').installed?
- <<-EOS
-Unsatisfied dependency, #{dep}
-Homebrew does not provide formula for Python dependencies, pip does:
+ <<-EOS.dedent
+ Unsatisfied dependency, #{dep}
+ Homebrew does not provide formula for Python dependencies, pip does:
- #{brew_pip} pip install #{dep}
+ #{brew_pip} pip install #{dep}
EOS
end
- def plerr dep; <<-EOS
-Unsatisfied dependency, #{dep}
-Homebrew does not provide formula for Perl dependencies, cpan does:
+ def plerr dep; <<-EOS.dedent
+ Unsatisfied dependency, #{dep}
+ Homebrew does not provide formula for Perl dependencies, cpan does:
- cpan -i #{dep}
+ cpan -i #{dep}
EOS
end
- def rberr dep; <<-EOS
-Unsatisfied dependency "#{dep}"
-Homebrew does not provide formulae for Ruby dependencies, rubygems does:
+ def rberr dep; <<-EOS.dedent
+ Unsatisfied dependency "#{dep}"
+ Homebrew does not provide formulae for Ruby dependencies, rubygems does:
- gem install #{dep}
+ gem install #{dep}
EOS
end
def jrberr dep; <<-EOS

0 comments on commit 53c72cc

Please sign in to comment.