cheat: iterate over resources directly

master
Jack Nagel 2014-07-18 19:11:44 -05:00
parent 72f2c01bb8
commit 066d4a1eae
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ class Cheat < Formula
install_args = [ "setup.py", "install", "--prefix=#{libexec}" ]
%w[docopt Pygments].each do |r|
resource(r).stage { system "python", *install_args }
resources.each do |r|
r.stage { system "python", *install_args }
end
system "python", "setup.py", "install", "--prefix=#{prefix}"