lib/getv/package.rb in getv-1.7.0 vs lib/getv/package.rb in getv-1.7.1
- old
+ new
@@ -167,10 +167,10 @@
end
end
def versions_using_helm
require 'yaml'
- YAML.safe_load(get("#{opts[:url]}/index.yaml")).fetch('entries', {}).fetch(name, []).map { |e| e['version'] }
+ YAML.safe_load(get("#{opts[:url]}/index.yaml")).fetch('entries', {}).fetch(opts[:chart], []).map { |e| e['version'] }
end
def versions_using_index
require 'nokogiri'
Nokogiri::HTML(get(opts[:url])).css('a').map do |a|