lib/kitchen/provisioner/chef/policyfile.rb
# Runs `chef install` to determine the correct cookbook set and
# generate the policyfile lock.
Runs `chef install` to determine the correct cookbook set and
generate the policyfile lock.
Runs ` chef install ` to determine the correct cookbook set and generate the policyfile lock .
def compile
          if always_update
            info("Updating policy lock using `chef update`")
            run_command("chef update #{escape_path(policyfile)}")
          end
          if File.exist?(lockfile)
            info("Installing cookbooks for Policyfile #{policyfile} using `chef install`")
          else
            info("Policy lock file doesn't exist, running `chef install` for "\
                 "Policyfile #{policyfile}...")
          end
          run_command("chef install #{escape_path(policyfile)}")
        end
def compile if always_update info ( "Updating policy lock using `chef update`" ) run_command ( "chef update #{escape_path(policyfile)}" ) end if File . exist? ( lockfile ) info ( "Installing cookbooks for Policyfile #{policyfile} using `chef install`" ) else info ( "Policy lock file doesn't exist, running `chef install` for " "Policyfile #{policyfile}..." ) end run_command ( "chef install #{escape_path(policyfile)}" ) end
Runs `chef install` to determine the correct cookbook set and
generate the policyfile lock.
Runs ` chef install ` to determine the correct cookbook set and generate the policyfile lock .