Method: Berkshelf::Source#cookbook

Defined in:
lib/berkshelf/source.rb

#cookbook(name, version) ⇒ APIClient::RemoteCookbook

Parameters:

Returns:



106
107
108
# File 'lib/berkshelf/source.rb', line 106

def cookbook(name, version)
  universe.find { |cookbook| cookbook.name == name && cookbook.version == version }
end