Sha256: 56804f41c54015aff94e1451b399816fc455b9d311b865b6588219e7b7dcec4b
Contents?: true
Size: 631 Bytes
Versions: 11
Compression:
Stored size: 631 Bytes
Contents
# frozen_string_literal: true module Getv class Package # Getv::Package::Helm class class Helm < Package def initialize(name, opts = {}) opts = defaults.merge(opts) opts = { chart: name, url: nil, user: nil, password: nil }.merge(opts) super name, opts end private def retrieve_versions require 'yaml' retries ||= 0 YAML.safe_load(get("#{opts[:url]}/index.yaml")).fetch('entries', {}).fetch(opts[:chart], []).map do |e| e['version'] end rescue StandardError retry if (retries += 1) < 4 end end end end
Version data entries
11 entries across 11 versions & 2 rubygems