Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (16 sloc) 0.598 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
include_recipe "pivotal_workstation::homebrew"

unless brew_installed? "memcached"
  brew_install "memcached"

  directory "/Users/#{WS_USER}/Library/LaunchAgents" do
    owner WS_USER
    action :create
  end

  execute "copy memcached plist to ~/Library/LaunchAgents" do
    command "cp `brew --prefix memcached`/homebrew.mxcl.memcached.plist #{WS_HOME}/Library/LaunchAgents/"
    user WS_USER
  end

  execute "load the memcached plist into the mac daemon startup thing" do
    command "launchctl load -w #{WS_HOME}/Library/LaunchAgents/homebrew.mxcl.memcached.plist"
    user WS_USER
  end
end
Something went wrong with that request. Please try again.