boot2docker: Add plist
Closes Homebrew/homebrew#34011. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
868a42fbce
commit
83e8131ecd
1 changed files with 19 additions and 0 deletions
|
@ -30,6 +30,25 @@ class Boot2docker < Formula
|
|||
bin.install "bin/boot2docker-cli" => "boot2docker"
|
||||
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>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_bin}/boot2docker</string>
|
||||
<string>up</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/boot2docker", "version"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue