Sha256: d3fe22c1804b3f6c12539a8fe1511bc20972b1f49a6041a7c54dd0f17f05f6e0
Contents?: true
Size: 484 Bytes
Versions: 11
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module Getv class Package # Getv::Package::Text class class Text < Package def initialize(name, opts = {}) opts = defaults.merge(opts) opts = { url: nil, user: nil, password: nil }.merge(opts) super name, opts end private def retrieve_versions retries ||= 0 get(opts[:url]).split("\n") rescue StandardError retry if (retries += 1) < 4 end end end end
Version data entries
11 entries across 11 versions & 2 rubygems