diff options
author | Tim Smith <tsmith@chef.io> | 2018-01-01 10:39:22 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-01-01 10:44:07 -0800 |
commit | 2cd379b12eac02246ecc12b5e3cbb51069c9cedc (patch) | |
tree | e82f1be3ff2883ebfb61199b0c60a97da37e5182 /lib/chef/mixin/language.rb | |
parent | bfe8487a26f99d3cd3e08fffea8cf6457631cf69 (diff) | |
download | chef-2cd379b12eac02246ecc12b5e3cbb51069c9cedc.tar.gz |
Remove previously deprecated mixins and Chef::DSL::Recipe::FullDSLchef14_deprecations
We wired these up previously with deprecations. They've been deprecated for a long time and are pretty rarely used on the Supermarket. Additionally we have Foodcritic rules to detect their usage:
FC102: Deprecated Chef::DSL::Recipe::FullDSL class used
FC100: Deprecated Chef::Mixin::Language mixin used
FC099: Deprecated Chef::Mixin::LanguageIncludeRecipe mixin used
FC098: Deprecated Chef::Mixin::RecipeDefinitionDSLCore mixin used
FC097: Deprecated Chef::Mixin::LanguageIncludeAttribute mixin used
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/mixin/language.rb')
-rw-r--r-- | lib/chef/mixin/language.rb | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/chef/mixin/language.rb b/lib/chef/mixin/language.rb deleted file mode 100644 index 3f53645a55..0000000000 --- a/lib/chef/mixin/language.rb +++ /dev/null @@ -1,48 +0,0 @@ -# -# Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require "chef/dsl/platform_introspection" -require "chef/dsl/data_query" -require "chef/mixin/deprecation" - -class Chef - module Mixin - - # == [DEPRECATED] Chef::Mixin::DeprecatedLanguageModule - # This module is a temporary replacement for the previous - # Chef::Mixin::Language. That module's functionality was split into two - # modules, Chef::DSL::PlatformIntrospection, and Chef::DSL::DataQuery. - # - # This module includes both PlatformIntrospection and DataQuery to provide - # the same interfaces and behavior as the prior Mixin::Language. - # - # This module is loaded via const_missing hook when Chef::Mixin::Language - # is accessed. See chef/mixin/deprecation for details. - module DeprecatedLanguageModule - - include Chef::DSL::PlatformIntrospection - include Chef::DSL::DataQuery - - end - - deprecate_constant(:Language, DeprecatedLanguageModule, <<-EOM) -Chef::Mixin::Language is deprecated. Use either (or both) -Chef::DSL::PlatformIntrospection or Chef::DSL::DataQuery instead. -EOM - end -end |