lib/chef_sync/knife.rb
def format_cookbook_list_output(knife_output)
			cookbooks = {}
			knife_output.each do |c|
				cb, ver = c.gsub(/\s+/m, ' ').strip.split(" ")
				cookbooks[cb] = ver
			end
			return cookbooks
		end
#Helper method to parse knife cookbook list into cookbooks.
Helper method to parse knife cookbook list into cookbooks.
Helper method to parse knife cookbook list into cookbooks .
def format_cookbook_list_output(knife_output)
			cookbooks = {}
			knife_output.each do |c|
				cb, ver = c.gsub(/\s+/m, ' ').strip.split(" ")
				cookbooks[cb] = ver
			end
			return cookbooks
		end
def format_cookbook_list_output ( knife_output ) cookbooks = { } knife_output . each do | c | cb , ver = c . gsub ( / \s + /m , ' ' ) . strip . split ( " " ) cookbooks [ cb ] = ver end return cookbooks end
Helper method to parse knife cookbook list into cookbooks.
Helper method to parse knife cookbook list into cookbooks .
knife_output