Sha256: 5b2d37b604a775dc96f740f06382684a191b7785f05437f04bc3ac3165615eb3
Contents?: true
Size: 343 Bytes
Versions: 8
Compression:
Stored size: 343 Bytes
Contents
require 'stringio' require 'chef/config' module KnifeCookbookDependencies module KnifeUtils def self.capture_knife_output(knife_obj) knife_obj.ui = Chef::Knife::UI.new(StringIO.new, StringIO.new, StringIO.new, :format => :json) knife_obj.run knife_obj.ui.stdout.rewind knife_obj.ui.stdout.read end end end
Version data entries
8 entries across 8 versions & 2 rubygems