lib/berkshelf/formatters/json.rb in berkshelf-2.0.0.beta vs lib/berkshelf/formatters/json.rb in berkshelf-2.0.0

- old
+ new

@@ -1,8 +1,7 @@ module Berkshelf module Formatters - # @author Michael Ivey <michael.ivey@riotgames.com> class JSON include AbstractFormatter register_formatter :json @@ -65,9 +64,16 @@ # @param [String] cookbook # @param [String] destination def package(cookbook, destination) cookbooks[cookbook] ||= {} cookbooks[cookbook][:destination] = destination + end + + # Output Cookbook info entry to delayed output + # + # @param [CachedCookbook] cookbook + def show(cookbook) + cookbooks[cookbook.cookbook_name] = cookbook.pretty_hash end # Add a generic message entry to delayed output # # @param [String] message