Update upstream cookbooks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user