Update cookbooks and add wordpress cookbook

This commit is contained in:
Greg Karékinian
2016-02-19 18:09:49 +01:00
parent 9ba973e3ac
commit 820b0ab3f8
606 changed files with 22421 additions and 14084 deletions

View File

@@ -1,19 +1,14 @@
actions :cask, :uncask, :install, :uninstall
default_action :install
attribute :name,
:name_attribute => true,
:kind_of => String,
:regex => /^[\w-]+$/
name_attribute: true,
kind_of: String,
regex: /^[\w-]+$/
attribute :casked,
:kind_of => [TrueClass, FalseClass]
attribute :options,
kind_of: String
if defined?(:default_action)
default_action :install
else
Chef::Log.warn("It appears you have Chef version #{Chef::VERSION},")
Chef::Log.warn('homebrew_cask resource will remove support for versions of Chef < 10.10 in the next major release of the cookbook')
def initialize(*args)
super
@action = :install
end
def casked?
shell_out('/usr/local/bin/brew cask list 2>/dev/null').stdout.split.include?(name)
end