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

View File

@@ -1,10 +1,10 @@
#
# Author:: Joshua Timberman (<jtimberman@opscode.com>)
# Author:: Joshua Timberman (<jtimberman@chef.io>)
# Author:: Graeme Mathieson (<mathie@woss.name>)
# Cookbook Name:: homebrew
# Resources:: tap
#
# Copyright 2011-2013, Opscode, Inc.
# Copyright 2011-2013, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -20,16 +20,12 @@
#
actions :tap, :untap
default_action :tap
attribute :name,
:name_attribute => true,
:kind_of => String,
:regex => /^[\w-]+(?:\/[\w-]+)+$/
name_attribute: true,
kind_of: String,
regex: %r{^[\w-]+(?:\/[\w-]+)+$}
attribute :tapped,
:kind_of => [TrueClass, FalseClass]
### hax for default action
def initialize(*args)
super
@action = :tap
end
kind_of: [TrueClass, FalseClass]