Ruby port of MassTransit ESB.
- Install Homebrew
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
- Install needed libraries
brew install git rabbitmq
- Create a launchd plist in /Library/LaunchDaemons/, i.e.
/Library/LaunchDaemons/com.rabbitmq.plist
- Load the new configuration
launchctl load /Library/LaunchDaemons/
- Start the service
launchctl start com.rabbitmq
Example com.rabbitmq.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.rabbitmq</string>
<key>Program</key>
<string>/usr/local/sbin/rabbitmq-server</string>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>travis</string>
<!-- need erl in the path -->
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/sbin:/usr/bin:/bin:/usr/local/bin</string>
</dict>
</dict>
</plist>
- ... [install ruby]
- Install rabbitmq
- Install bindings
sudo gem sources -a http://gems.github.com && sudo gem install carrot