Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Author:: Joshua Timberman (<joshua@opscode.com>)
|
||||
# Author:: Joshua Timberman (<joshua@getchef.com>)
|
||||
# Cookbook Name:: php
|
||||
# Libraries:: helpers
|
||||
#
|
||||
|
||||
35
cookbooks/php/libraries/matchers.rb
Normal file
35
cookbooks/php/libraries/matchers.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
if defined?(ChefSpec)
|
||||
ChefSpec.define_matcher :php_pear
|
||||
def install_php_pear(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear, :install, resource_name)
|
||||
end
|
||||
|
||||
def remove_php_pear(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear, :remove, resource_name)
|
||||
end
|
||||
|
||||
def upgrade_php_pear(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear, :upgrade, resource_name)
|
||||
end
|
||||
|
||||
def purge_php_pear(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear, :purge, resource_name)
|
||||
end
|
||||
|
||||
ChefSpec.define_matcher :php_pear_channel
|
||||
def discover_php_pear_channel(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear_channel, :discover, resource_name)
|
||||
end
|
||||
|
||||
def remove_php_pear_channel(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear_channel, :remove, resource_name)
|
||||
end
|
||||
|
||||
def update_php_pear_channel(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear_channel, :update, resource_name)
|
||||
end
|
||||
|
||||
def add_php_pear_channel(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear_channel, :add, resource_name)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user