Skip to content

Commit

Permalink
Replace deprecated plist with service block
Browse files Browse the repository at this point in the history
  • Loading branch information
sdorra authored and pfeuffer committed Feb 5, 2024
1 parent 2f67f2c commit f091269
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions Formula/scm-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,7 @@ def install
chmod 0755, bin/"scm-server"
end

plist_options manual: "scm-server"

def plist
<<~EOS
<?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}/scm-server</string>
<string>start</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
EOS
service do
run opt_bin/"scm-server"
end
end

0 comments on commit f091269

Please sign in to comment.