Sha256: 711541bfb7e439847f20e0e931ee8d959837bb3acedf3e7331ff18ad873c7862
Contents?: true
Size: 1.04 KB
Versions: 6
Compression:
Stored size: 1.04 KB
Contents
# Description: ChefVault::Mixin::KnifeCompat module # Copyright 2013, Nordstrom, Inc. # 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. # Make a wraper to chef10/11 "shef/shell" changes class ChefVault module Mixin module KnifeCompat require "chef/version" def extend_context_object(obj) if Chef::VERSION.to_i >= 11 require "chef/shell/ext" Shell::Extensions.extend_context_object(obj) else require "chef/shef/ext" Shef::Extensions.extend_context_object(obj) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems