Sha256: de74363da87ee164bab02b997e8e28a68b2d2d6d797461f6fc826dd99db693ad
Contents?: true
Size: 1.04 KB
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chef-vault-2.6.1 | lib/chef/knife/mixin/compat.rb |
chef-vault-2.6.0 | lib/chef/knife/mixin/compat.rb |
chef-vault-2.5.0 | lib/chef/knife/mixin/compat.rb |