Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Cookbook Name:: homebrew
|
||||
# Recipes:: cask
|
||||
#
|
||||
# Copyright 2014, Chef Software, Inc <legal@getchef.com>
|
||||
# Copyright 2014-2015, Chef Software, Inc <legal@chef.io>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -20,20 +20,19 @@ Chef::Resource.send(:include, Homebrew::Mixin)
|
||||
|
||||
homebrew_tap 'caskroom/cask'
|
||||
|
||||
package 'brew-cask'
|
||||
|
||||
execute 'update homebrew cask from github' do
|
||||
user node['homebrew']['owner'] || homebrew_owner
|
||||
command '/usr/local/bin/brew upgrade brew-cask && /usr/local/bin/brew cask cleanup || true'
|
||||
only_if { node['homebrew']['auto-update'] }
|
||||
directory '/Library/Caches/Homebrew/Casks' do
|
||||
owner homebrew_owner
|
||||
mode 00775
|
||||
only_if { ::Dir.exist?('/Library/Caches/Homebrew') }
|
||||
end
|
||||
|
||||
directory '/opt/homebrew-cask' do
|
||||
owner node['homebrew']['owner'] || homebrew_owner
|
||||
owner homebrew_owner
|
||||
mode 00775
|
||||
recursive true
|
||||
end
|
||||
|
||||
directory '/opt/homebrew-cask/Caskroom' do
|
||||
owner node['homebrew']['owner'] || homebrew_owner
|
||||
owner homebrew_owner
|
||||
mode 00775
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user