aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-17 10:15:52 -0500
committerJack Nagel2014-04-17 10:15:52 -0500
commit0ddc2f68c6b623c84a911e5066cf20e13e30be49 (patch)
tree9f32cce345abede8e5fa1fa3c6d5665ca822517d /Library
parent420fd11f4490e2cbbb206c4ed00638d395ad47a9 (diff)
downloadhomebrew-0ddc2f68c6b623c84a911e5066cf20e13e30be49.tar.bz2
openvpn: remove unnecessary loop
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/appscale-tools.rb6
-rw-r--r--Library/Formula/openvpn.rb9
2 files changed, 5 insertions, 10 deletions
diff --git a/Library/Formula/appscale-tools.rb b/Library/Formula/appscale-tools.rb
index 46bbeaab0..ffb883473 100644
--- a/Library/Formula/appscale-tools.rb
+++ b/Library/Formula/appscale-tools.rb
@@ -67,10 +67,8 @@ class AppscaleTools < Formula
resource('httplib2').stage { system "python", *install_args }
resource('python-gflags').stage { system "python", *install_args }
- Dir['bin/appscale*'].each do |command_file|
- inreplace command_file do |s|
- s.gsub! /^lib = os.*/, "lib = '#{libexec}'"
- end
+ inreplace Dir["bin/appscale*"] do |s|
+ s.gsub! /^lib = os.*/, "lib = '#{libexec}'"
end
prefix.install 'bin', 'templates', 'LICENSE', 'README.md'
diff --git a/Library/Formula/openvpn.rb b/Library/Formula/openvpn.rb
index c6cff0c82..f350f364c 100644
--- a/Library/Formula/openvpn.rb
+++ b/Library/Formula/openvpn.rb
@@ -27,14 +27,11 @@ class Openvpn < Formula
system "make install"
# Adjust sample file paths
- inreplace ["sample/sample-config-files/openvpn-startup.sh"] do |s|
- s.gsub! "/etc/openvpn", etc+'openvpn'
- end
+ inreplace "sample/sample-config-files/openvpn-startup.sh",
+ "/etc/openvpn", "#{etc}/openvpn"
# Install sample files
- Dir['sample/sample-*'].each do |d|
- (share + 'doc/openvpn' + d).install Dir[d+'/*']
- end
+ (doc/"sample").install Dir["sample/sample-*"]
# Create etc & var paths
(etc + 'openvpn').mkpath