Method: Berkshelf::Formatters::JSON#initialize

Defined in:
lib/berkshelf/formatters/json.rb

#initializeJSON

Returns a new instance of JSON.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/berkshelf/formatters/json.rb', line 8

def initialize
  Berkshelf.ui.mute!

  @output = {
    cookbooks: Array.new,
    errors: Array.new,
    messages: Array.new
  }
  @cookbooks = Hash.new
  super
end