Downgrade mysql cookbook for now

It doesn't play well with our current dev server setup
This commit is contained in:
Greg Karékinian
2017-06-16 22:43:51 +02:00
parent e39792ea36
commit bdfb3a1afb
398 changed files with 12716 additions and 10889 deletions

View File

@@ -2,10 +2,7 @@
# Cookbook:: iis
# Library:: helper
#
# Author:: Julian C. Dunn <jdunn@chef.io>
# Author:: Justin Schuhmann <jmschu02@gmail.com>
#
# Copyright:: 2013-2016, Chef Software, Inc.
# Copyright:: 2017, 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.
@@ -73,7 +70,25 @@ module Opscode
Chef::Util::PathHelper.cleanpath(path)
end
# Remove any trailing slashes to prevent them from accidentally escaping any quotes.
path.chomp('/').chomp('\\')
path.tr('/', '\\')
end
def application_cleanname(application_name)
if application_name.count('/') == 0
"#{application_name}/"
elsif application_name.count('/') > 1
application_name.chomp('/')
else
application_name
end
end
def value(document, xpath)
XPath.first(document, xpath).to_s
end
def bool(value)
value == 'true'
end
def new_value?(document, xpath, value_to_check)