class Berkshelf::JsonFormatter
def install(source, cookbook)
-
cookbook
(RemoteCookbook
) -- -
source
(Source
) --
def install(source, cookbook) cookbooks[cookbook.name] ||= {} cookbooks[cookbook.name][:version] = cookbook.version unless source.default? cookbooks[cookbook.name][:api_source] = source.uri cookbooks[cookbook.name][:location_path] = cookbook.location_path end end