Downgrade mysql cookbook for now
It doesn't play well with our current dev server setup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user