lib/knife/changelog/policyfile.rb in knife-changelog-1.0.5 vs lib/knife/changelog/policyfile.rb in knife-changelog-1.0.6

- old
+ new

@@ -15,10 +15,10 @@ @lock = ChefDK::PolicyfileLock.new(policy.storage_config).build_from_lock_data(JSON.parse(File.read(lock_path))) super(config) end def all_cookbooks - policy.all_possible_dep_names + policy.solution_dependencies.cookbook_deps_for_lock.map { |k, v| k.scan(/(.*) \(.*\)/).last.first } end # return true if cookbook is not already listed as dependency def new_cookbook?(name) policy.send(:best_source_for, name).nil?