class ChefCLI::Policyfile::DSL
def include_policy(name, source_options = {})
def include_policy(name, source_options = {}) if ( existing = included_policies.find { |p| p.name == name } ) err = "Included policy '#{name}' assigned conflicting locations or was already specified\n\n" err << "Previous source: #{existing.source_options.inspect}\n" err << "Conflicts with: #{source_options.inspect}\n" @errors << err else spec = PolicyfileLocationSpecification.new(name, source_options, storage_config, chef_config) included_policies << spec @errors += spec.errors end end