cheat: iterate over resources directly
parent
72f2c01bb8
commit
066d4a1eae
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue