Sha256: 18d17e3633be516c6e11ef35a807c2d0788dccaedc27fa3e1627356d55f3aa3e
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
# Cookbook Name:: mongodb # Recipe:: default package "mongodb" plist="homebrew.mxcl.mongodb.plist" bash "copy plist firsttime" do code <<-EOS (cp /usr/local/Cellar/mongodb/*/#{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/mongodb/*/#{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/mongodb/recipes/default.rb |
megalodon-0.1.0 | cookbooks/mongodb/recipes/default.rb |