aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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