Skip to content

Instantly share code, notes, and snippets.

@nebhale
Created August 13, 2013 09:54
Show Gist options
  • Save nebhale/6219635 to your computer and use it in GitHub Desktop.
Save nebhale/6219635 to your computer and use it in GitHub Desktop.
Print downloaded content before YAML parsing
# Creates a new repository index, populating it with values from an index file.
#
# @param [String] repository_root the root of the repository to create the index for
def initialize(repository_root)
@index = {}
JavaBuildpack::Util::DownloadCache.new.get("#{repository_root}#{INDEX_PATH}") do |file| # TODO: Use global cache #50175265
content = file.read
puts content
@index.merge! YAML.load(content)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment