Sha256: 48059bb4a0b69dc9d1754555f2396d45de2cf872dc905be0c01324545309382d

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

# Cookbook Name:: redis
# Recipe:: default

package "redis"

plist="homebrew.mxcl.redis.plist"

bash "copy plist firsttime" do
  code <<-EOS
  (cp /usr/local/Cellar/redis/*/#{plist} ~/Library/LaunchAgents/)
  (launchctl load -w ~/Library/LaunchAgents/#{plist})
  EOS
  not_if File.exists?("~/Library/LaunchAgents/#{plist}")
end

bash "copy new plist" do
  code <<-EOS
    launchctl unload -w ~/Library/LaunchAgents/#{plist}
    cp /usr/local/Cellar/redis/*/#{plist} ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/#{plist}
  EOS
  only_if File.exists?("~/Library/LaunchAgents/#{plist}")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
megalodon-0.1.1 cookbooks/redis/recipes/default.rb
megalodon-0.1.0 cookbooks/redis/recipes/default.rb