class Proxy::Omaha::Distribution::Flatcar
Public Instance Methods
identifier()
click to toggle source
# File lib/smart_proxy_omaha/distribution.rb, line 54 def identifier :flatcar end
prefix()
click to toggle source
# File lib/smart_proxy_omaha/distribution.rb, line 58 def prefix 'flatcar' end
releases(track, architecture)
click to toggle source
# File lib/smart_proxy_omaha/distribution.rb, line 74 def releases(track, architecture) feed_data = http_request.get("https://www.flatcar-linux.org/releases-json/releases-#{track}.json") json_feed = JSON.parse(feed_data) json_feed.select { |_, release| release['architectures'].include?(architecture.split('-').first) }.keys - ['current'] end
update_filename()
click to toggle source
# File lib/smart_proxy_omaha/distribution.rb, line 62 def update_filename 'flatcar_production_update.gz' end
update_upstream(architecture, version)
click to toggle source
# File lib/smart_proxy_omaha/distribution.rb, line 70 def update_upstream(architecture, version) "https://update.release.flatcar-linux.net/#{architecture}/#{version}" end
upstream(track, architecture, version)
click to toggle source
# File lib/smart_proxy_omaha/distribution.rb, line 66 def upstream(track, architecture, version) "https://#{track}.release.flatcar-linux.net/#{architecture}/#{version}" end