class ChefCLI::Policyfile::LockApplier
def prepare_constraints_for_policies
def prepare_constraints_for_policies if unlocked_policies == :all return end policyfile_compiler.included_policies.each do |policy| unless unlocked_policies.include?(policy.name) lock = policyfile_lock.included_policy_locks.find do |policy_lock| policy_lock["name"] == policy.name end policy.apply_locked_source_options(lock["source_options"]) end end end