lib/kitchen/provisioner/chef/librarian.rb
# Performs the cookbook resolution and vendors the resulting cookbooks
# in the desired path.
Performs the cookbook resolution and vendors the resulting cookbooks
in the desired path.
Performs the cookbook resolution and vendors the resulting cookbooks in the desired path .
def resolve
          version = ::Librarian::Chef::VERSION
          info("Resolving cookbook dependencies with Librarian-Chef #{version}...")
          debug("Using Cheffile from #{cheffile}")
          env = ::Librarian::Chef::Environment.new(
            project_path: File.dirname(cheffile))
          env.config_db.local["path"] = path
          ::Librarian::Action::Resolve.new(env).run
          ::Librarian::Action::Install.new(env).run
        end
def resolve version = :: Librarian :: Chef :: VERSION info ( "Resolving cookbook dependencies with Librarian-Chef #{version}..." ) debug ( "Using Cheffile from #{cheffile}" ) env = :: Librarian :: Chef :: Environment . new ( project_path : File . dirname ( cheffile ) ) env . config_db . local [ "path" ] = path :: Librarian :: Action :: Resolve . new ( env ) . run :: Librarian :: Action :: Install . new ( env ) . run end
Performs the cookbook resolution and vendors the resulting cookbooks
in the desired path.
Performs the cookbook resolution and vendors the resulting cookbooks in the desired path .