class ChefCLI::Policyfile::LockApplier

def with_unlocked_policies(policies)

Parameters:
  • policies (Array) -- Unconstrain a specific policy by name
  • policies (:all) -- Unconstrain all policies
def with_unlocked_policies(policies)
  if policies == :all || unlocked_policies == :all
    @unlocked_policies = :all
  else
    policies.each do |policy|
      @unlocked_policies << policy
    end
  end
  self
end