Update cookbooks for Ubuntu 16.04 TLS
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#
|
||||
# Author:: Joshua Timberman (<joshua@getchef.com>)
|
||||
# Cookbook Name:: php
|
||||
# Author:: Joshua Timberman (<joshua@chef.io>)
|
||||
# Cookbook:: php
|
||||
# Libraries:: helpers
|
||||
#
|
||||
# Copyright 2013, Opscode, Inc.
|
||||
# Copyright:: 2013-2016, 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.
|
||||
|
||||
@@ -16,6 +16,10 @@ if defined?(ChefSpec)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear, :purge, resource_name)
|
||||
end
|
||||
|
||||
def purge_php_pear(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear, :option, 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)
|
||||
@@ -32,4 +36,13 @@ if defined?(ChefSpec)
|
||||
def add_php_pear_channel(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_pear_channel, :add, resource_name)
|
||||
end
|
||||
|
||||
ChefSpec.define_matcher :php_fpm_pool
|
||||
def install_php_fpm_pool(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_fpm_pool, :install, resource_name)
|
||||
end
|
||||
|
||||
def uninstall_php_fpm_pool(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:php_fpm_pool, :uninstall, resource_name)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user