Skip to content

Commit

Permalink
Some String.dedent action
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl authored and adamv committed Jul 18, 2010
1 parent 3726f8d commit 53c72cc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Library/Homebrew/formula_installer.rb
Expand Up @@ -22,25 +22,25 @@ def expand_deps f


def pyerr dep def pyerr dep
brew_pip = ' brew install pip &&' unless Formula.factory('pip').installed? brew_pip = ' brew install pip &&' unless Formula.factory('pip').installed?
<<-EOS <<-EOS.dedent
Unsatisfied dependency, #{dep} Unsatisfied dependency, #{dep}
Homebrew does not provide formula for Python dependencies, pip does: Homebrew does not provide formula for Python dependencies, pip does:
#{brew_pip} pip install #{dep} #{brew_pip} pip install #{dep}
EOS EOS
end end
def plerr dep; <<-EOS def plerr dep; <<-EOS.dedent
Unsatisfied dependency, #{dep} Unsatisfied dependency, #{dep}
Homebrew does not provide formula for Perl dependencies, cpan does: Homebrew does not provide formula for Perl dependencies, cpan does:
cpan -i #{dep} cpan -i #{dep}
EOS EOS
end end
def rberr dep; <<-EOS def rberr dep; <<-EOS.dedent
Unsatisfied dependency "#{dep}" Unsatisfied dependency "#{dep}"
Homebrew does not provide formulae for Ruby dependencies, rubygems does: Homebrew does not provide formulae for Ruby dependencies, rubygems does:
gem install #{dep} gem install #{dep}
EOS EOS
end end
def jrberr dep; <<-EOS def jrberr dep; <<-EOS
Expand Down

0 comments on commit 53c72cc

Please sign in to comment.