lib/chef/knife/mixin/compat.rb in chef-vault-2.4.0 vs lib/chef/knife/mixin/compat.rb in chef-vault-2.5.0

- old
+ new

@@ -11,20 +11,20 @@ # 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 +# 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 + if Chef::VERSION.to_i >= 11 require "chef/shell/ext" Shell::Extensions.extend_context_object(obj) - else + else require 'chef/shef/ext' Shef::Extensions.extend_context_object(obj) end end end