# # Cookbook Name:: redis # Recipe:: 2.0.4 # require_recipe "homebrew" execute "ensure checking out of redis-2.0.4 branch" do command <<-EOS cd #{Chef::Provider::Package::Homebrew::PREFIX} git checkout -b redis-2.0.4 29f618bec65c05ab1a00d8670fc320dae33f5a55 EOS not_if "git branch | grep -q redis-2.0.4" end homebrew 'redis' execute "ensure checking out of master branch after redis install" do command <<-EOS cd #{Chef::Provider::Package::Homebrew::PREFIX} git checkout master git branch -d redis-2.0.4 EOS end require_recipe "redis::plist"