vendor/bundle/ruby/2.1.0/gems/test-kitchen-1.7.3/lib/kitchen/provisioner/chef_base.rb
# Load cookbook dependency resolver code, if required.
#
# (see Base#load_needed_dependencies!)
Load cookbook dependency resolver code, if required.
Load cookbook dependency resolver code if required .
def load_needed_dependencies!
        super
        if File.exist?(berksfile)
          debug("Berksfile found at #{berksfile}, loading Berkshelf")
          Chef::Berkshelf.load!(logger)
        elsif File.exist?(cheffile)
          debug("Cheffile found at #{cheffile}, loading Librarian-Chef")
          Chef::Librarian.load!(logger)
        end
      end
def load_needed_dependencies! super if File . exist? ( berksfile ) debug ( "Berksfile found at #{berksfile}, loading Berkshelf" ) Chef :: Berkshelf . load! ( logger ) elsif File . exist? ( cheffile ) debug ( "Cheffile found at #{cheffile}, loading Librarian-Chef" ) Chef :: Librarian . load! ( logger ) end end
Load cookbook dependency resolver code, if required.
Load cookbook dependency resolver code if required .