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

Version Path
knife_cookbook_dependencies_over_http-0.0.8.3 lib/kcd/knife_utils.rb
knife_cookbook_dependencies_over_http-0.0.8.2 lib/kcd/knife_utils.rb
knife_cookbook_dependencies_over_http-0.0.8.1 lib/kcd/knife_utils.rb
knife_cookbook_dependencies_over_http-0.0.8 lib/kcd/knife_utils.rb
knife_cookbook_dependencies-0.0.8 lib/kcd/knife_utils.rb
knife_cookbook_dependencies-0.0.7 lib/kcd/knife_utils.rb
knife_cookbook_dependencies-0.0.6 lib/kcd/knife_utils.rb
knife_cookbook_dependencies-0.0.5 lib/kcd/knife_utils.rb