class Proxy::Omaha::ReleaseProvider
Attributes
architecture[R]
distribution[R]
track[R]
Public Class Methods
new(options)
click to toggle source
# File lib/smart_proxy_omaha/release_provider.rb, line 12 def initialize(options) @track = options.fetch(:track) @architecture = options.fetch(:architecture, 'amd64-usr') @distribution = options.fetch(:distribution) end
Public Instance Methods
fetch_releases()
click to toggle source
# File lib/smart_proxy_omaha/release_provider.rb, line 22 def fetch_releases releases = distribution.releases(track, architecture) release_objects = releases.map do |version| Proxy::Omaha::Release.new(:distribution => distribution, :version => version, :track => track, :architecture => architecture) end.sort logger.debug "Fetched releases for #{architecture}/#{track}: #{release_objects.map(&:to_s).join(', ')}" release_objects end
releases()
click to toggle source
# File lib/smart_proxy_omaha/release_provider.rb, line 18 def releases @releases ||= fetch_releases end