class ChefConfig::PackageTask

def update_version_rb # rubocop:disable Lint/NestedMethodDefinition

rubocop:disable Lint/NestedMethodDefinition
def update_version_rb # rubocop:disable Lint/NestedMethodDefinition

  puts "Updating #{version_rb_path} to include version #{version} ..."
  contents = <<-VERSION_RB

ght:: Copyright 2010-2016, Chef Software, Inc.
e:: Apache License, Version 2.0
ed under the Apache License, Version 2.0 (the "License");
y not use this file except in compliance with the License.
y obtain a copy of the License at
tp://www.apache.org/licenses/LICENSE-2.0
 required by applicable law or agreed to in writing, software
buted under the License is distributed on an "AS IS" BASIS,
T WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
e License for the specific language governing permissions and
tions under the License.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This file is generated by running `rake version` in the top level of
epo. Do not edit this manually. Edit the VERSION file and run the rake
nstead.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
uire \"chef/version_string\"\n" if use_versionstring}
or_module} #{module_name}
le_name.upcase}_ROOT = File.expand_path("../..", __FILE__)
N = #{use_versionstring ? "Chef::VersionString.new(\"#{version}\")" : "\"#{version}\""}
the Chef::Version class is defined in version_class.rb
DO NOT Use the Chef::Version class on #{module_name}::VERSIONs.  The
Chef::Version class is for _cookbooks_ only, and cannot handle
pre-release versions like "10.14.0.rc.2".  Please use Rubygem's
Gem::Version class instead.
  VERSION_RB

  IO.write(version_rb_path, contents)
end