Update upstream cookbooks

This commit is contained in:
Greg Karékinian
2017-03-20 13:19:10 +00:00
parent bfd2d52ea8
commit bcfd44b923
340 changed files with 12576 additions and 5465 deletions

View File

@@ -1,7 +1,10 @@
if defined?(ChefSpec)
def config_iis_config(command)
ChefSpec::Matchers::ResourceMatcher.new(:iis_config, :config, command)
[:set, :clear, :config].each do |action|
self.class.send(:define_method, "#{action}_iis_config", proc do |config_name|
ChefSpec::Matchers::ResourceMatcher.new(:iis_config, action, config_name)
end
)
end
[:config, :add, :delete].each do |action|
@@ -53,11 +56,11 @@ if defined?(ChefSpec)
)
end
if Gem.loaded_specs['chefspec'].version < Gem::Version.new('4.1.0')
define_method = ChefSpec::Runner.method(:define_runner_method)
else
define_method = ChefSpec.method(:define_matcher)
end
define_method = if Gem.loaded_specs['chefspec'].version < Gem::Version.new('4.1.0')
ChefSpec::Runner.method(:define_runner_method)
else
ChefSpec.method(:define_matcher)
end
define_method.call :iis_app
define_method.call :iis_config