diff options
| author | Adam Vandenberg | 2014-05-19 17:18:12 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-19 17:18:12 -0700 |
| commit | becfd75e0ac839931dced5bbfc34db71265b0c7a (patch) | |
| tree | f39c578defb1656971e0ddcfd71c8caca597670b | |
| parent | 36e28ae5ef342eed3c52876bd9b3aeab2d1ede55 (diff) | |
| download | homebrew-becfd75e0ac839931dced5bbfc34db71265b0c7a.tar.bz2 | |
ansible: use resource list
| -rw-r--r-- | Library/Formula/ansible.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Formula/ansible.rb b/Library/Formula/ansible.rb index 50cfd1678..f926f890c 100644 --- a/Library/Formula/ansible.rb +++ b/Library/Formula/ansible.rb @@ -52,13 +52,10 @@ class Ansible < Formula ENV.prepend_create_path 'PYTHONPATH', prefix+'lib/python2.7/site-packages' install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] - resource('pycrypto').stage { system "python", *install_args } - resource('pyyaml').stage { system "python", *install_args } - resource('paramiko').stage { system "python", *install_args } - resource('markupsafe').stage { system "python", *install_args } - resource('jinja2').stage { system "python", *install_args } - if build.with? 'accelerate' - resource('python-keyczar').stage { system "python", *install_args } + res = %w[pycrypto pyyaml paramiko markupsafe jinja2] + res << "python-keyczar" if build.with? "accelerate" + res.each do |r| + resource(r).stage { system "python", *install_args } end inreplace 'lib/ansible/constants.py' do |s| |
