class Berkshelf::Lockfile::Graph

def update(cookbooks)

Parameters:
  • (Array) --
def update(cookbooks)
  @graph = {}
  cookbooks.each do |cookbook|
    @graph[cookbook.cookbook_name.to_s] = GraphItem.new(
      cookbook.cookbook_name,
      cookbook.version,
      cookbook.dependencies
    )
  end
end