Module: ChefVault::Mixin::KnifeCompat
- Defined in:
- lib/chef/knife/mixin/compat.rb
Instance Method Summary collapse
Instance Method Details
#extend_context_object(obj) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/chef/knife/mixin/compat.rb', line 22 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 |