Created
August 13, 2013 09:54
-
-
Save nebhale/6219635 to your computer and use it in GitHub Desktop.
Print downloaded content before YAML parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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