Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user