|
| 1 | +# |
| 2 | +# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE |
| 3 | +# |
| 4 | +# THIS IS A FILE AUTOGENERATED BY 'rake update' DO NOT EDIT!!!! |
| 5 | +# |
| 6 | +# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE |
| 7 | +# |
| 8 | + |
| 9 | +begin |
| 10 | + require 'chef/dsl/core' |
| 11 | +rescue LoadError; end |
| 12 | + |
| 13 | +require 'chef_compat/copied_from_chef' |
| 14 | +class Chef |
| 15 | +module ::ChefCompat |
| 16 | +module CopiedFromChef |
| 17 | +#-- |
| 18 | +# Author:: Adam Jacob (<[email protected]>) |
| 19 | +# Author:: Christopher Walters (<[email protected]>) |
| 20 | +# Copyright:: Copyright 2008-2016 Chef Software, Inc. |
| 21 | +# License:: Apache License, Version 2.0 |
| 22 | +# |
| 23 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 24 | +# you may not use this file except in compliance with the License. |
| 25 | +# You may obtain a copy of the License at |
| 26 | +# |
| 27 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 28 | +# |
| 29 | +# Unless required by applicable law or agreed to in writing, software |
| 30 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 31 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 32 | +# See the License for the specific language governing permissions and |
| 33 | +# limitations under the License. |
| 34 | +# |
| 35 | + |
| 36 | +require "chef_compat/copied_from_chef/chef/dsl/declare_resource" |
| 37 | +require "chef_compat/copied_from_chef/chef/dsl/universal" |
| 38 | +require "chef_compat/copied_from_chef/chef/mixin/notifying_block" |
| 39 | +require "chef_compat/copied_from_chef/chef/mixin/lazy_module_include" |
| 40 | + |
| 41 | +class Chef < (defined?(::Chef) ? ::Chef : Object) |
| 42 | + module DSL |
| 43 | + CopiedFromChef.extend_chef_module(::Chef::DSL, self) if defined?(::Chef::DSL) |
| 44 | + # Part of a family of DSL mixins. |
| 45 | + # |
| 46 | + # Chef::DSL::Recipe mixes into Recipes and LWRP Providers. |
| 47 | + # - this does not target core chef resources and providers. |
| 48 | + # - this is restricted to recipe/resource/provider context where a resource collection exists. |
| 49 | + # - cookbook authors should typically include modules into here. |
| 50 | + # |
| 51 | + # Chef::DSL::Core mixes into Recipes, LWRP Providers and Core Providers |
| 52 | + # - this adds cores providers on top of the Recipe DSL. |
| 53 | + # - this is restricted to recipe/resource/provider context where a resource collection exists. |
| 54 | + # - core chef authors should typically include modules into here. |
| 55 | + # |
| 56 | + # Chef::DSL::Universal mixes into Recipes, LWRP Resources+Providers, Core Resources+Providers, and Attributes files. |
| 57 | + # - this adds resources and attributes files. |
| 58 | + # - do not add helpers which manipulate the resource collection. |
| 59 | + # - this is for general-purpose stuff that is useful nearly everywhere. |
| 60 | + # - it also pollutes the namespace of nearly every context, watch out. |
| 61 | + # |
| 62 | + module Core |
| 63 | + CopiedFromChef.extend_chef_module(::Chef::DSL::Core, self) if defined?(::Chef::DSL::Core) |
| 64 | + include Chef::DSL::Universal |
| 65 | + include Chef::DSL::DeclareResource |
| 66 | + include Chef::Mixin::NotifyingBlock |
| 67 | + extend Chef::Mixin::LazyModuleInclude |
| 68 | + end |
| 69 | + end |
| 70 | +end |
| 71 | +end |
| 72 | +end |
| 73 | +end |
0 commit comments