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

@@ -3,7 +3,7 @@
# Cookbook Name:: chef_handler
# Resource:: default
#
# Copyright:: 2011-2013, Chef Software, Inc <legal@chef.io>
# Copyright:: 2011-2016, 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,15 +20,20 @@
actions :enable, :disable
attribute :class_name, :kind_of => String, :name_attribute => true
attribute :source, :default => nil, :kind_of => String
attribute :arguments, :default => []
attribute :supports, :kind_of => Hash, :default => { :report => true, :exception => true }
state_attrs :arguments,
:class_name,
:source,
:supports
# we have to set default for the supports attribute
attribute :class_name, kind_of: String, name_attribute: true
attribute :source, default: nil, kind_of: String
attribute :arguments, default: []
attribute :supports, kind_of: Hash, default: { report: true, exception: true }
# we have to set default for the supports attribute
# in initializer since it is a 'reserved' attribute name
def initialize(*args)
super
@action = :enable
@supports = { :report => true, :exception => true }
@supports = { report: true, exception: true }
end