aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDan2015-02-23 11:09:46 -0800
committerMike McQuaid2015-02-23 21:31:34 +0000
commit6f7622fbbd7d097519112f5499d81e47116a3f20 (patch)
treef6244bb07a3b925c71828330dfb36fc3e1f44d56 /Library
parentbe5dafdc363454cace3bab286a14f64946f28b9e (diff)
downloadhomebrew-6f7622fbbd7d097519112f5499d81e47116a3f20.tar.bz2
chromedriver: add a launchd plist.
Closes #37122. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/chromedriver.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/chromedriver.rb b/Library/Formula/chromedriver.rb
index 068ce2872..2070464dc 100644
--- a/Library/Formula/chromedriver.rb
+++ b/Library/Formula/chromedriver.rb
@@ -9,4 +9,30 @@ class Chromedriver < Formula
def install
bin.install 'chromedriver'
end
+
+ def plist; <<-EOS.undent
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+ <plist version="1.0">
+ <dict>
+ <key>Label</key>
+ <string>homebrew.mxcl.chromedriver</string>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>KeepAlive</key>
+ <false/>
+ <key>ProgramArguments</key>
+ <array>
+ <string>#{opt_bin}/chromedriver</string>
+ </array>
+ <key>ServiceDescription</key>
+ <string>Chrome Driver</string>
+ <key>StandardErrorPath</key>
+ <string>#{var}/log/chromedriver-error.log</string>
+ <key>StandardOutPath</key>
+ <string>#{var}/log/chromedriver-output.log</string>
+ </dict>
+ </plist>
+ EOS
+ end
end